npm-package-integrity

1.1.1 • Public • Published

npm-package-integrity

basic prepublish test for an npm package's integrity. runs npm pack then attempts to require the resulting tarball.

how

npm install --save-dev npm-package-integrity, and in your package.json:

{
    "scripts": {
        "prepublish": "npm-package-integrity"
    }
}

why

there's an npm bug that's particularly painful in node 6 and causes missing files in your package in certain circumstances. i've been bitten by it a few times. the packages are broken enough that require just doesn't work, so that's a good prepublish test.

who

matt brennan. MIT licence

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i npm-package-integrity

      Weekly Downloads

      2

      Version

      1.1.1

      License

      MIT

      Last publish

      Collaborators

      • robgodfrey
      • robertboulton
      • seraph2000
      • hamza.samih
      • notlee
      • emmalewis
      • aendra
      • the-ft
      • rowanmanning
      • chee
      • alexwilson