nb-read-write-pkg
v0.0.3
Published
读写 package.json文件
Downloads
7
Readme
nb-read-write-pkg
- 读取相对工作目录路径 package.json
const {readPkg} = require('nbt-read-write-pkg');
readPkg('./')
- 向当前工作目录的相对路径写入 package.json
const {writePkg} = require('nbt-read-write-pkg');
writePkg('./',{config:{port:8080}})