2.2.0 • Published 6 years ago
bo_npmdemo v2.2.0
create test project to publish in the npm.reg
npm publish
- npm init --yes
- vi index.js & wq:
- edit index.js ; example:
exports.printLog = function(){
console.log("thih is test");
}
- the file
.gitignore
to ignore some dir or file npm publish
publish this module
using
const Log = require("bo_npmdemo");
Log.printLog();
start
node index.js