aboutsummaryrefslogtreecommitdiff
path: root/node_modules/write-pkg/readme.md
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2018-09-20 02:56:13 +0200
committerFlorian Dold <florian.dold@gmail.com>2018-09-20 02:56:13 +0200
commitbbff7403fbf46f9ad92240ac213df8d30ef31b64 (patch)
treec58400ec5124da1c7d56b01aea83309f80a56c3b /node_modules/write-pkg/readme.md
parent003fb34971cf63466184351b4db5f7c67df4f444 (diff)
update packages
Diffstat (limited to 'node_modules/write-pkg/readme.md')
-rw-r--r--node_modules/write-pkg/readme.md14
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