[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"$KiqIp5Qu8t":3,"blog-\u002Fblog\u002Fmy-first-npm-package":52,"blogToc-\u002Fblog\u002Fmy-first-npm-package":201,"blog-surrounding-\u002Fblog\u002Fmy-first-npm-package":286,"blog-similar-posts-\u002Fblog\u002Fmy-first-npm-package":295},{"id":4,"extension":5,"items":6,"meta":49,"stem":50,"__hash__":51},"menu\u002Fmenu.json","json",[7,12,16,20,24,28,32,36,41,45],{"i18nId":8,"to":9,"ariaLabel":10,"mainNavigation":11},"components.menu.home","\u002F","Home",true,{"i18nId":13,"to":14,"ariaLabel":15,"mainNavigation":11},"components.menu.about","\u002Fhire-me","About",{"i18nId":17,"to":18,"ariaLabel":19,"mainNavigation":11},"components.menu.testimonials","\u002Ftestimonials","Testimonials",{"i18nId":21,"to":22,"ariaLabel":23},"components.menu.contact","\u002Fcontact","Contact",{"i18nId":25,"to":26,"ariaLabel":27,"mainNavigation":11},"components.menu.blog","\u002Fblog","Blog",{"i18nId":29,"to":30,"ariaLabel":31,"mainNavigation":11},"components.menu.tips","\u002Fvue-tips","Vue Tips",{"i18nId":33,"to":34,"ariaLabel":35,"mainNavigation":11},"components.menu.projects","\u002Fprojects","Projects",{"i18nId":37,"to":38,"ariaLabel":39,"mainNavigation":40},"components.menu.stats","\u002Fstats","stats",false,{"i18nId":42,"to":43,"ariaLabel":44,"mainNavigation":40},"components.menu.businessCard","\u002Fbusiness-card","Business Card",{"i18nId":46,"to":47,"ariaLabel":48,"mainNavigation":40},"components.menu.publications","\u002Fpublications","Publications",{},"menu","njLT1QoRt2Dv8QWoVmH8xdTAiDywSj0bxBQdmoyWUE0",{"id":53,"title":54,"body":55,"categories":181,"cover":91,"date":183,"description":184,"extension":185,"lastUpdated":186,"meta":187,"navigation":11,"ogImage":186,"path":189,"readingTime":190,"robots":186,"schemaOrg":186,"seo":195,"sitemap":196,"stem":199,"tags":186,"__hash__":200},"blog\u002Fblog\u002Fmy-first-npm-package\u002Findex.md","My First NPM Package: github-traffic-cli",{"type":56,"value":57,"toc":174},"minimark",[58,70,73,82,85,92,97,106,110,154,158],[59,60,61,62,69],"p",{},"Since I published my first projects on ",[63,64,68],"a",{"href":65,"rel":66},"https:\u002F\u002Fgithub.com\u002FMokkapps",[67],"nofollow","GitHub"," I've enjoyed viewing the traffic on my repositories. It is exciting to see how many people visit or clone my repositories.",[59,71,72],{},"Unfortunately, it costs a lot of time to click through all available repositories, and I was looking for a more elegant way.",[59,74,75,76,81],{},"I stumbled upon the npm package ",[63,77,80],{"href":78,"rel":79},"https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002Fgithub-traffic",[67],"github-traffic",", which already provides an API to fetch the GitHub traffic. So I decided to write a command-line interface (CLI) npm package which uses this API.",[59,83,84],{},"As a result, I can check the traffic on all of my repositories with one CLI command:",[59,86,87],{},[88,89],"img",{"alt":90,"src":91},"\"github-traffic-cli\" Screenshot","blog\u002Fmy-first-npm-package\u002Fgithub-traffic-cli_akmxsx.jpg",[93,94,96],"h2",{"id":95},"develop-publish-npm-package","Develop & publish npm package",[59,98,99,100,105],{},"The process is straightforward and documented in the ",[63,101,104],{"href":102,"rel":103},"https:\u002F\u002Fdocs.npmjs.com\u002Fgetting-started\u002Fpublishing-npm-packages",[67],"npm docs",".",[93,107,109],{"id":108},"used-npm-packages","Used npm packages",[111,112,113,122,130,138,146],"ul",{},[114,115,116,121],"li",{},[63,117,120],{"href":118,"rel":119},"https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002Fchalk",[67],"chalk",": Terminal string styling done right",[114,123,124,129],{},[63,125,128],{"href":126,"rel":127},"https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002Fclui",[67],"clui",": Node.js toolkit for quickly building nice looking command line interfaces",[114,131,132,137],{},[63,133,136],{"href":134,"rel":135},"https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002Fcommander",[67],"commander",": The complete solution for node.js command-line interfaces",[114,139,140,145],{},[63,141,144],{"href":142,"rel":143},"https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002Ffiglet",[67],"figlet",": Terminal ASCII art from text",[114,147,148,153],{},[63,149,152],{"href":150,"rel":151},"https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002Finquirer",[67],"inquirer",": A collection of common interactive command line user interfaces.",[93,155,157],{"id":156},"links","Links",[111,159,160,167],{},[114,161,162],{},[63,163,166],{"href":164,"rel":165},"https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002Fgithub-traffic-cli",[67],"github-traffic-cli",[114,168,169],{},[63,170,173],{"href":171,"rel":172},"https:\u002F\u002Fgithub.com\u002FMokkapps\u002Fgithub-traffic-cli",[67],"Source Code",{"title":175,"searchDepth":176,"depth":176,"links":177},"",2,[178,179,180],{"id":95,"depth":176,"text":96},{"id":108,"depth":176,"text":109},{"id":156,"depth":176,"text":157},[182],"development","2018-05-12","Since I published my first projects on GitHub I've enjoyed viewing the traffic on my repositories. It is exciting to see how many people visit or clone my repositories.","md",null,{"subTitle":188},"My little journey developing my first npm package","\u002Fblog\u002Fmy-first-npm-package",{"text":191,"minutes":192,"time":193,"words":194},"1 min read",0.745,44700,149,{"title":54,"description":184},{"loc":189,"images":197,"lastmod":183},[198],{"loc":91},"blog\u002Fmy-first-npm-package\u002Findex","C8IRLe9Kozg7xTkdjODxZRkcKYX6iTMBZMiwRBZX6f4",{"id":202,"title":54,"body":203,"cover":91,"description":184,"extension":185,"meta":278,"navigation":11,"path":189,"robots":186,"seo":281,"sitemap":282,"stem":199,"__hash__":285},"content\u002Fblog\u002Fmy-first-npm-package\u002Findex.md",{"type":56,"value":204,"toc":273},[205,210,212,217,219,223,225,230,232,259,261],[59,206,61,207,69],{},[63,208,68],{"href":65,"rel":209},[67],[59,211,72],{},[59,213,75,214,81],{},[63,215,80],{"href":78,"rel":216},[67],[59,218,84],{},[59,220,221],{},[88,222],{"alt":90,"src":91},[93,224,96],{"id":95},[59,226,99,227,105],{},[63,228,104],{"href":102,"rel":229},[67],[93,231,109],{"id":108},[111,233,234,239,244,249,254],{},[114,235,236,121],{},[63,237,120],{"href":118,"rel":238},[67],[114,240,241,129],{},[63,242,128],{"href":126,"rel":243},[67],[114,245,246,137],{},[63,247,136],{"href":134,"rel":248},[67],[114,250,251,145],{},[63,252,144],{"href":142,"rel":253},[67],[114,255,256,153],{},[63,257,152],{"href":150,"rel":258},[67],[93,260,157],{"id":156},[111,262,263,268],{},[114,264,265],{},[63,266,166],{"href":164,"rel":267},[67],[114,269,270],{},[63,271,173],{"href":171,"rel":272},[67],{"title":175,"searchDepth":176,"depth":176,"links":274},[275,276,277],{"id":95,"depth":176,"text":96},{"id":108,"depth":176,"text":109},{"id":156,"depth":176,"text":157},{"subTitle":188,"categories":279,"date":183,"readingTime":280},[182],{"text":191,"minutes":192,"time":193,"words":194},{"title":54,"description":184},{"loc":189,"images":283,"lastmod":183},[284],{"loc":91},"9NsH37RZSeUQnIkYnfX7MRy7fzzEUsz2LMuQX45MRLE",[287,291],{"title":288,"path":289,"stem":290,"children":-1},"How I Built My Website With Hugo And Netlify","\u002Fblog\u002Fhow-i-built-my-website-using-netlify-and-hugo","blog\u002Fhow-i-built-my-website-using-netlify-and-hugo\u002Findex",{"title":292,"path":293,"stem":294,"children":-1},"My First Visual Code Extension","\u002Fblog\u002Fmy-first-vs-code-extension","blog\u002Fmy-first-vs-code-extension\u002Findex",[296,301,306,311],{"cover":297,"date":298,"slug":299,"title":300,"to":299},"blog\u002Fa-comprehensive-guide-to-data-fetching-in-nuxt-3\u002Fog.png","2023-06-20","\u002Fblog\u002Fa-comprehensive-guide-to-data-fetching-in-nuxt-3","A Comprehensive Guide to Data Fetching in Nuxt 3",{"cover":302,"date":303,"slug":304,"title":305,"to":304},"blog\u002Fanalyze-memory-leaks-in-your-nuxt-app\u002Fog.png","2024-07-27","\u002Fblog\u002Fanalyze-memory-leaks-in-your-nuxt-app","Analyze Memory Leaks in Your Nuxt App",{"cover":307,"date":308,"slug":309,"title":310,"to":309},"blog\u002Fbuild-and-deploy-a-serverless-graphql-react-app-using-aws-amplify\u002Fcover_pliu6q.jpg","2021-05-07","\u002Fblog\u002Fbuild-and-deploy-a-serverless-graphql-react-app-using-aws-amplify","Build and Deploy a Serverless GraphQL React App Using AWS Amplify",{"cover":312,"date":313,"slug":314,"title":315,"to":314},"blog\u002Fbuilding-a-polite-newsletter-popup-with-nuxt-3\u002FBlog_Post__Polite_Popup_Nuxt_3_k8ch1w.jpg","2022-10-18","\u002Fblog\u002Fbuilding-a-polite-newsletter-popup-with-nuxt-3","Building a Polite Newsletter Popup With Nuxt 3"]