🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

fish-npm

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fish-npm

相关的字段 - name: 必填,表明我们的包名。需要在npmjs上唯一,记得提前到npm官网上搜索一下 - version: 必要,每次上传这个值只能增加,不能不变或者减少。 - homepage: 尽量填写,一般就是github地址,这样如果别人对我们的项目有兴趣,就可以找到地方。

latest
npmnpm
Version
0.0.2
Version published
Weekly downloads
6
100%
Maintainers
1
Weekly downloads
 
Created
Source

发布一个包

相关的字段

  • name: 必填,表明我们的包名。需要在npmjs上唯一,记得提前到npm官网上搜索一下
  • version: 必要,每次上传这个值只能增加,不能不变或者减少。
  • homepage: 尽量填写,一般就是github地址,这样如果别人对我们的项目有兴趣,就可以找到地方。

.npmignore

如果没有这个字段,就使用.gitignore

publish

在官网上注册一个账号,然后

npm login
npm publish

就行了。

注意: 如果之前使用过taobao等镜像,publish的时候要设置回来,不然没有权限。

FAQs

Package last updated on 15 Feb 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts