跳到主要内容
CNode

private-npm

分享
Ii5ting发布于 12 年前最后回复 12 年前
136000

npm private modules publish, share and install proprietary code easily Private modules are ordinary npm packages that only you, and people you select, can view, install, and publish. You publish them in your namespace or your team's namespace, just by giving them a name in package.json:

{
  "name": "@myuser/mypackage"
}

You publish them with npm publish, just like any other package, and you install them by name:

npm install @myuser/mypackage

Once installed, use them by requiring them by name, just like any package:

var mypackage = require('@myuser/mypackage');

以后会用起来很方便哦

查看回复

回复 (1)

I
i5ting#112 年前

但是

npm Private Modules are coming in early 2015.

等吧

参与回复

登录后即可参与回复。登录