[{"data":1,"prerenderedAt":-1,"buildId":316},["ShallowReactive",2],{"$9oPIbGgjrk":3,"blog-\u002Fblog\u002Fmy-first-npm-package":52,"blog-similar-posts-\u002Fblog\u002Fmy-first-npm-package":201,"blog-surrounding-\u002Fblog\u002Fmy-first-npm-package":222,"blogToc-\u002Fblog\u002Fmy-first-npm-package":231},{"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",[202,207,212,217],{"cover":203,"date":204,"slug":205,"title":206,"to":205},"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":208,"date":209,"slug":210,"title":211,"to":210},"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":213,"date":214,"slug":215,"title":216,"to":215},"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":218,"date":219,"slug":220,"title":221,"to":220},"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",[223,227],{"title":224,"path":225,"stem":226,"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":228,"path":229,"stem":230,"children":-1},"My First Visual Code Extension","\u002Fblog\u002Fmy-first-vs-code-extension","blog\u002Fmy-first-vs-code-extension\u002Findex",{"id":232,"title":54,"body":233,"cover":91,"date":183,"description":184,"extension":185,"meta":308,"navigation":11,"path":189,"robots":186,"seo":311,"sitemap":312,"stem":199,"__hash__":315},"content\u002Fblog\u002Fmy-first-npm-package\u002Findex.md",{"type":56,"value":234,"toc":303},[235,240,242,247,249,253,255,260,262,289,291],[59,236,61,237,69],{},[63,238,68],{"href":65,"rel":239},[67],[59,241,72],{},[59,243,75,244,81],{},[63,245,80],{"href":78,"rel":246},[67],[59,248,84],{},[59,250,251],{},[88,252],{"alt":90,"src":91},[93,254,96],{"id":95},[59,256,99,257,105],{},[63,258,104],{"href":102,"rel":259},[67],[93,261,109],{"id":108},[111,263,264,269,274,279,284],{},[114,265,266,121],{},[63,267,120],{"href":118,"rel":268},[67],[114,270,271,129],{},[63,272,128],{"href":126,"rel":273},[67],[114,275,276,137],{},[63,277,136],{"href":134,"rel":278},[67],[114,280,281,145],{},[63,282,144],{"href":142,"rel":283},[67],[114,285,286,153],{},[63,287,152],{"href":150,"rel":288},[67],[93,290,157],{"id":156},[111,292,293,298],{},[114,294,295],{},[63,296,166],{"href":164,"rel":297},[67],[114,299,300],{},[63,301,173],{"href":171,"rel":302},[67],{"title":175,"searchDepth":176,"depth":176,"links":304},[305,306,307],{"id":95,"depth":176,"text":96},{"id":108,"depth":176,"text":109},{"id":156,"depth":176,"text":157},{"subTitle":188,"categories":309,"readingTime":310},[182],{"text":191,"minutes":192,"time":193,"words":194},{"title":54,"description":184},{"loc":189,"images":313,"lastmod":183},[314],{"loc":91},"hpxubhkW-8cGb8qaSi2Y_k_ODmfhYf7EXjnIecgkTmE","f09a107e-6bfe-401d-aab9-d94cb6f394d2"]