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

maxt-vue

v1.1.0

Published

npm install commander download-git-repo inquirer handlebars ora chalk log-symbols -S

Downloads

2

Readme

安装npm 第三方库

npm install commander download-git-repo inquirer handlebars ora chalk log-symbols -S

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

  • download-git-repo,下载并提取 git 仓库,用于下载项目模板。

  • Inquirer.js,通用的命令行用户界面集合,用于和用户进行交互。

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

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

  • chalk,可以给终端的字体加上颜色。

  • log-symbols,可以在终端上显示出 √ 或 × 等的图标。

注册npm 账号

https://www.npmjs.com/

npm 操作

  • 2.npm init 生成package.json,如果已存在,就不用
  • 3.npm adduser (添加用户)Username:Password:Email:
  • 3.npm login(您在npm官网注册的账号,密码,邮箱)
  • 4.npm whoami (查看是否登录成功,成功后返回账户名)
  • 5.npm publish [floder] //不带参数默认是当前目录

通过node 写 一个创建文件 index.js 用来发布到npm

  • 使用第三方插件编写代码。克隆github仓库的模板、展示下载、提问写入 package.json 等操作 具体详情看index.js

!> download-git-repo 注意写法。

  • GitHub - github:owner/name or simply owner/name
  • GitLab - gitlab:owner/name
  • Bitbucket - bitbucket:owner/name

如何下载项目

  • npm install maxt-vue -g

  • maxt-vue init <name>

  • 看项目提示