npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

yogi-cli

v1.2.4

Published

npm 工具包

Downloads

24

Readme

yogi-cli

打造自己的脚手架工具,实现思路

  • 项目模板放在github/gitlab上
  • 用户通过命令交互的方式下载不同的模板
  • 经过模板引擎渲染定制项目模板
  • 模板变动,只需要更新模板即可,不需要用户更新脚手架

涉及知识点及模块

  • NodeJs

    基于Node.js开发命令行工具

  • ECMAScript 6

    使用最新版本语言进行开发

  • npm 发包

    npm包的发布及更新流程

    『 <npm login> 登录 <npm publish> 发布 』

    登录失败E403 试试执行

    『 npm config set registry https://registry.npmjs.org 』

    全局下载yogi-cli失败可以试试

    『 npm config set registry=https://registry.npmmirror.com 』

    全局更新工具包

    『 npm update <name> -g 』

  • commander.js

    可以自动的解析命令和参数,用于处理用户输入的命令

  • download

    下载并提取git仓库,用于下载项目模板

  • Inquirer.js

    通用的命令行用户界面集合,用于和用户进行交互

  • handlebars.js

    模板引擎,将用户提交的信息动态填充到文件中

  • ora

    下载过程久的话。可以用于显示下载中的动画效果

  • chalk

    可以给终端的字体加上颜色


全局安装

npm install -g yogi-cli@latest

初始化项目

yogi init <projectName>