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

calc-common

v0.2.3

Published

calc front-end common modules

Downloads

2

Readme

1>相关文章

2>常用命令

npm

npm install webpack webpack-cli --global (全局安装插件)

=>npm install webpack webpack-cli -g

npm install calc-common (只在dependencies安装)

npm install --save calc-common (只在dependencies安装)

npm install --save-dev calc-common (devDependencies安装)

=>npm install -D

npm i --save-dev [email protected] (安装指定版本的包)

npm uninstall calc-common (卸载包)

删除 node_modules 依赖

npm install rimraf -g rimraf node_modules

npm init (初始化自定义包的环境)

npm config get registry (查看镜像地址)

npm login(登录npm账号)

npm adduser(创建npm账号)

npm publish (上传发布)

npm version patch (更新版本)

npm unpublish 包名@版本号 (删除指定的版本)

npm unpublish 包名 --force (删除整个包, 会有警告提示, 删除后该包名24小时之内不可再用)

npm audit --json (查看需要手动更新的漏洞)

nvm

nvm ls-remote:列出所有可以安装的node版本号

nvm ls:列出所有已经安装的node版本

nvm install v10.4.0:安装指定版本号的node

nvm current:当前node版本

nvm use v10.3.0:切换node的版本,这个是全局的

3>其他知识点

*dependencies(生产依赖): 如果某些包在开发和项目上线之后都需要用到,则建议把这些包记录到 dependencies 节点中。

*devDependencies(开发依赖): 如果某些包只在项目开发阶段会用到,在项目上线之后不会用到,则建议把这些包记录到devDependencies 节点中。

*如何仅仅安装生产依赖?

默认npm install 会安装所有依赖(开发和生产依赖都安装)

通过–production 选项可以仅仅安装生产依赖

npm install --production