test-ja-module
v1.0.2
Published
This a project to test publish a node module to npmjs.org
Downloads
4
Readme
create-vuepress-theme-hope
This is a test project to publish a node module to npmjs.org
Publish
# 需要向 npmjs.com 申请用户名
npm adduser
# 登录
npm login
# publish
npm publish
# 第一次需要指定公开参数
npm publish --access public
先登录再发布 npm 包到 npmjs.com
Usage
install the package
npm install test-es-hope --save
use the package in index.js
import printMsg from 'test-node-module' printMsg()
run the script in command
node index.js