npm4matian

4.0.0 • Public • Published

1.使用之前注册的npm账号进行登录

npm login
username:xxxxx
password:xxxxxx
email:xxxxxx

2.初始化仓库 每一个npm包都需要一个package.json文件,进行常规配置。

npm init

生成一个package.json,有一些简单选项,包括:包名、版本号、主入口文件、描述、作者等。 2.1主入口文件 默认index.js,此文件导出了一个名叫hello的函数。

function hello(name){
 console.log("hello "+ name);
}
exports.hello = hello;

3.发布

npm publish

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 4.0.0
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 4.0.0
    1
  • 3.0.0
    0
  • 2.0.0
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i npm4matian

Weekly Downloads

1

Version

4.0.0

License

ISC

Unpacked Size

921 B

Total Files

3

Last publish

Collaborators

  • luckymatian