非原创
本文转自https://github.com/a415432669/-front_end_notebook/tree/master/Node/day6/%E6%96%87%E6%A1%A3
1. 创建文件夹(然后在其打开powershell)
2. npm包的初始化:npm init
3. npm包信息的设置
json
{
"name": "lcfs",
"version": "0.1.0",
"description": "将原生的fs模块进行promise封装,可以快速的使用async_await模式",
"main": "lcfs.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [
"fs",
"promise封装"
],
"author": "陈鹏",
"license": "ISC"
}