{
  "_args": [
    [
      {
        "raw": "dint@^3.0.0",
        "scope": null,
        "escapedName": "dint",
        "name": "dint",
        "rawSpec": "^3.0.0",
        "spec": ">=3.0.0 <4.0.0",
        "type": "range"
      },
      "/home/zkochan/src/pnpm/packages/pnpm/node_modules/@pnpm/git-fetcher"
    ]
  ],
  "_from": "dint@>=3.0.0 <4.0.0",
  "_id": "dint@3.0.2",
  "_inCache": true,
  "_location": "/dint",
  "_nodeVersion": "9.10.1",
  "_npmOperationalInternal": {
    "host": "s3://npm-registry-packages",
    "tmp": "tmp/dint_3.0.2_1534275999963_0.8710776593220275"
  },
  "_npmUser": {
    "name": "zkochan",
    "email": "z@kochan.io"
  },
  "_npmVersion": "6.3.0",
  "_phantomChildren": {},
  "_requested": {
    "raw": "dint@^3.0.0",
    "scope": null,
    "escapedName": "dint",
    "name": "dint",
    "rawSpec": "^3.0.0",
    "spec": ">=3.0.0 <4.0.0",
    "type": "range"
  },
  "_requiredBy": [
    "/@pnpm/check-package",
    "/@pnpm/git-fetcher"
  ],
  "_resolved": "https://registry.npmjs.org/dint/-/dint-3.0.2.tgz",
  "_shasum": "30de6a2a7b24e20cfc570686854dce4b60671f25",
  "_shrinkwrap": null,
  "_spec": "dint@^3.0.0",
  "_where": "/home/zkochan/src/pnpm/packages/pnpm/node_modules/@pnpm/git-fetcher",
  "author": {
    "name": "Zoltan Kochan",
    "email": "z@kochan.io",
    "url": "https://kochan.io"
  },
  "bugs": {
    "url": "https://github.com/zkochan/dint/issues"
  },
  "dependencies": {
    "graceful-fs": "^4.1.11",
    "mz": "^2.7.0",
    "p-every": "^1.0.2",
    "p-limit": "^2.0.0",
    "ssri": "^6.0.0"
  },
  "description": "Generate and verify directory integrity",
  "devDependencies": {
    "mos": "^2.0.0-alpha.3",
    "mos-plugin-readme": "^1.0.4",
    "package-preview": "^1.0.1",
    "tape": "^4.6.3"
  },
  "directories": {},
  "dist": {
    "integrity": "sha512-bgMVWkNU2NBRqRYXrHwSMeDYbUDPIt/g3qdg5VF2BiPtdjN3bZ66y7kQ3XjTHnWOQ6L19bLWujNWLH0ty8GKDw==",
    "shasum": "30de6a2a7b24e20cfc570686854dce4b60671f25",
    "tarball": "https://registry.npmjs.org/dint/-/dint-3.0.2.tgz",
    "fileCount": 4,
    "unpackedSize": 6136,
    "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbczGgCRA9TVsSAnZWagAADAIP/Rtmlr9S0tVaUi4Epr3D\nq7XKZO6LSmvkxbSNHhV/7WSLzfZiosKhlRQpgodllE0Vs0T/FN4Zg4nlbMU1\nDQqcfdL5OR7mxdWja9RgQ1Cl0sjGlEUu1mRiQI6EDtwgzU0DI5O4ZBodHzbF\nGjLRwt/cUc15n9pelFLZUtJIo1i2cCap2CbfG7vYxg4HPu5ZypJUwXn/cPEY\ntuRVCe72kCGhDNOFjz9U3hBAvAZOHlJBs+kgeFphz4nCxGsEGbptVaalAlY4\nl6GL4m5dZ+OO036BJR2nvG9fu09g+qr3zESLPQaWhwGuehPWRLFHdRyJSs+j\naH3RnJwyk1mrSQ9E391+ZxlfvLKE2z2NSHHfyxM9OVEZV9ZwHMs/V4wkeTZk\nbM5g65J0XOwNsaazje9sZLy9mUIR6vsgh+xknNqoW99GLFISbBxRoItLb1Pn\nETgt6dJGo9PyE5XDt0uo3RgQrfGYwYirrlYxMhqckHe/ZpoBHN/kpKt2rSgd\nmgK679BCgKoY9kU+Fs03Cr6R8hWUQ/gYSLPGX6wI4Pd1R21MXb6fG8axyhBw\nW+6ffp+qJznPOkPOgifbyd0iX82Ws+/550rulGJD95ZNOgSqa0LP+P9mIE7Q\nJtdnUxgYpq2LdUP06egL8oy5TIIMLb1bEchem4IZlJZNaDtY77GzdaawTZAY\nd8aQ\r\n=rqt8\r\n-----END PGP SIGNATURE-----\r\n"
  },
  "engines": {
    "node": ">=6"
  },
  "files": [
    "index.js"
  ],
  "gitHead": "69860429852f0dd95605b52fa4cc25317c570221",
  "homepage": "https://github.com/zkochan/dint#readme",
  "keywords": [
    "integrity",
    "sri",
    "directory",
    "fs"
  ],
  "license": "MIT",
  "main": "index.js",
  "maintainers": [
    {
      "name": "zkochan",
      "email": "zoltan.kochan@gmail.com"
    }
  ],
  "mos": {
    "plugins": [
      "readme"
    ],
    "installation": {
      "useShortAlias": true
    }
  },
  "name": "dint",
  "optionalDependencies": {},
  "readme": "# dint\n\n> Generate and verify directory integrity\n\n<!--@shields('npm', 'travis')-->\n[![npm version](https://img.shields.io/npm/v/dint.svg)](https://www.npmjs.com/package/dint) [![Build Status](https://img.shields.io/travis/zkochan/dint/master.svg)](https://travis-ci.org/zkochan/dint)\n<!--/@-->\n\nThis package is mostly a copy/paste from [@zkat](https://github.com/zkat)'s [cadr](https://github.com/zkat/cadr) excluding the [cacache](https://github.com/zkat/cacache) usages.\n\n**Important!** A directory is not considered modified if a file was added.\nA directory is considered modified if a file was modified or removed.\n\n## Installation\n\n```sh\nnpm i -S dint\n```\n\n## API\n\n### `from(dirname): Promise<DirectoryIntegrity>`\n\nReturns a mapping of file names to size and [Subresource Integrity](https://w3c.github.io/webappsec-subresource-integrity/) of each file.\n\nResult example:\n\n```js\n{\n 'test/fixtures/4/lib/bar.js':\n   { generatingIntegrity: Promise<'sha512-1B0QjibzjRrYeSf79Hcy9T1t8KNt4cFpz//88geXTN6lDnUzMo+4o/MJDESUs884XdZ5EX4RLdzsJA8qeEV3lg=='>,\n     size: 198 },\n  'test/index.js':\n   { generatingIntegrity: Promise<'sha512-X6ypBcefaTDbDHHcR0J57E2dvDv6vAVi7tHAhfDImmDU8LBaYwdkdX+hVlqFdWNevJjRqsgZbXb/c+Ewq5t3tQ=='>,\n     size: 939 } }\n```\n\n### `check(dirname, directoryIntegrity): Promise<Boolean>`\n\nVerifies directory integrity against a `directoryIntegrity` argument.\n\nE.g.:\n\n```js\ncheck('dirname', {\n 'test/fixtures/4/lib/bar.js':\n   { integrity: 'sha512-1B0QjibzjRrYeSf79Hcy9T1t8KNt4cFpz//88geXTN6lDnUzMo+4o/MJDESUs884XdZ5EX4RLdzsJA8qeEV3lg==',\n     size: 198 },\n  'test/index.js':\n   { integrity: 'sha512-X6ypBcefaTDbDHHcR0J57E2dvDv6vAVi7tHAhfDImmDU8LBaYwdkdX+hVlqFdWNevJjRqsgZbXb/c+Ewq5t3tQ==',\n     size: 939 } })\n```\n\n## License\n\n[MIT](./LICENSE) © [Zoltan Kochan](http://kochan.io)\n",
  "readmeFilename": "README.md",
  "repository": {
    "type": "git",
    "url": "git+https://github.com/zkochan/dint.git"
  },
  "scripts": {
    "md": "mos",
    "test": "preview && node test"
  },
  "version": "3.0.2"
}
