Socket
Socket
Sign inDemoInstall

write-pkg

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

write-pkg - npm Package Compare versions

Comparing version 5.0.0 to 5.1.0

11

index.d.ts

@@ -5,2 +5,13 @@ import {JsonObject} from 'type-fest';

/**
The indentation to use for new files.
Accepts `'\t'` for tab indentation or a number of spaces.
If the file already exists, the existing indentation will be used.
Default: Auto-detected or `'\t'`
*/
readonly indent?: string | number;
/**
Remove empty `dependencies`, `devDependencies`, `optionalDependencies` and `peerDependencies` objects.

@@ -7,0 +18,0 @@

12

package.json
{
"name": "write-pkg",
"version": "5.0.0",
"version": "5.1.0",
"description": "Write a package.json file",

@@ -36,12 +36,12 @@ "license": "MIT",

"sort-keys": "^5.0.0",
"type-fest": "^2.0.0",
"type-fest": "^2.12.1",
"write-json-file": "^5.0.0"
},
"devDependencies": {
"ava": "^3.15.0",
"read-pkg": "^7.0.0",
"ava": "^4.1.0",
"read-pkg": "^7.1.0",
"tempfile": "^4.0.0",
"tsd": "^0.17.0",
"xo": "^0.44.0"
"tsd": "^0.19.1",
"xo": "^0.48.0"
}
}

@@ -9,5 +9,5 @@ # write-pkg

```sh
npm install write-pkg
```
$ npm install write-pkg
```

@@ -46,2 +46,13 @@ ## Usage

##### indent
Type: `string | number`\
Default: Auto-detected or `'\t'`
The indentation to use for new files.
Accepts `'\t'` for tab indentation or a number of spaces.
If the file already exists, the existing indentation will be used.
##### normalize

@@ -60,3 +71,2 @@

## Related

@@ -63,0 +73,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc