Comparing version 1.0.1 to 1.0.2
@@ -33,4 +33,5 @@ #!/usr/bin/env node | ||
if (err) throw err; | ||
fs.writeFileSync(metaPath, JSON.stringify({packages: packages}, null, 2)) | ||
console.log("Wrote %s", metaPath) | ||
}) |
{ | ||
"name": "backfill", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Download package.json dependency data to meta.json", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -1,5 +0,7 @@ | ||
# backfill | ||
# backfill | ||
Download package.json dependency data to meta.json | ||
[backfill](https://www.npmjs.org/package/backfill) looks for all `dependencies` in `package.json` and downloads registry metadata for each one to a file called `meta.json`. | ||
## Installation | ||
@@ -13,3 +15,15 @@ | ||
## Usage | ||
To have backfill update `meta.json` automatically every time you install, add a `postinstall` script: | ||
```json | ||
{ | ||
"name": "npm-collection-foo", | ||
"scripts": { | ||
"postinstall": "backfill" | ||
} | ||
} | ||
``` | ||
## Tests | ||
@@ -16,0 +30,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3493
51