diff options
Diffstat (limited to 'node_modules/write-pkg/readme.md')
-rw-r--r-- | node_modules/write-pkg/readme.md | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/node_modules/write-pkg/readme.md b/node_modules/write-pkg/readme.md index a10a8b6d9..ad3ed1cd5 100644 --- a/node_modules/write-pkg/readme.md +++ b/node_modules/write-pkg/readme.md @@ -34,11 +34,11 @@ writePkg(path.join('unicorn', 'package.json'), {foo: true}).then(() => { ## API -### writePkg([path], data) +### writePkg([path], data, [options]) Returns a `Promise`. -### writePkg.sync([path], data) +### writePkg.sync([path], data, [options]) #### path @@ -47,6 +47,16 @@ Default: `process.cwd()` Path to where the `package.json` file should be written or its directory. +#### options + +Type: `Object` + +##### normalize + +Type: `boolean`<br> +Default: `true` + +Remove empty `dependencies`, `devDependencies`, `optionalDependencies` and `peerDependencies` objects. ## Related |