package-io
v1.0.5
Published
<p align="center"> <img src="./logo/logo.png" width="300" /> </p>
Downloads
25
Readme
It's a helper for operator package.json
Usage
npm install package-io
const {pkgRead, pkgUpdate} = require('package-io');
const data = pkgRead();
pkgUpdate(Object.assign(data, {name: "my favorite"}));
API Reference
Functions
pkgRead([url]) ⇒ Object
return pkg context
Kind: global function
| Param | Type | Description | | --- | --- | --- | | [url] | string | package.json path |
pkgUpdate(url, data)
update your pkg
Kind: global function
| Param | Type | Description | | --- | --- | --- | | url | string | package.json path | | data | Object | cover data |
pkgPath([url]) ⇒ string
get path form your workSpace
Kind: global function
| Param | Type | Description | | --- | --- | --- | | [url] | string | package.json path |
License
MIT
Copyright (c) 2018 蓝色的秋风