{"_id":"@observablehq/rollup-plugin-credits","_rev":"27-b6dc8d608b031f94a29394bdf5f5f0c1","name":"@observablehq/rollup-plugin-credits","dist-tags":{"latest":"2.0.2"},"versions":{"1.0.1":{"name":"@observablehq/rollup-plugin-credits","version":"1.0.1","author":{"name":"Tom MacWright"},"license":"MIT","_id":"@observablehq/rollup-plugin-credits@1.0.1","maintainers":[{"name":"jashkenas","email":"jashkenas@gmail.com"},{"name":"mbostock","email":"mike@ocks.org"},{"name":"tmcw","email":"tom@macwright.org"}],"dist":{"shasum":"50ab21d83317d8097a7f8a503ee3c4c5c1246d27","tarball":"https://registry.npmjs.org/@observablehq/rollup-plugin-credits/-/rollup-plugin-credits-1.0.1.tgz","fileCount":4,"integrity":"sha512-ZIio8DyM7CMF21yvqYrWLTQn2QEtExwXe9nxWGgaJoGQ4vMaB1u9FtYeW5iIZ4tEzm/XafGyUfHvtTe1gw7yNA==","signatures":[{"sig":"MEQCIBQUo5jw9CZ+noMqVUYngX1U+/KYQbtiNsGHmudx2fEGAiAT7PtEdK6pn7kQ6P2hnOvtyEBHIW6Yb02oZfsoCKvgqw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":7245},"main":"index.js","files":[],"gitHead":"64da5689fd939ae1a50165de84a5692139ca99e2","scripts":{"test":"tape test/test.js","release":"standard-version"},"_npmUser":{"name":"tmcw","email":"tom@macwright.org"},"_npmVersion":"5.6.0","description":"Generate credits information for included dependencies","directories":{},"_nodeVersion":"8.9.4","dependencies":{"spdx-expression-parse":"^2.0.2"},"_hasShrinkwrap":false,"devDependencies":{"tape":"^4.8.0","acorn":"^5.3.0","rollup":"^0.55.0","prettier":"^1.10.2","path-to-regexp":"^2.1.0","standard-version":"^4.3.0","rollup-plugin-commonjs":"^8.2.6","rollup-plugin-node-resolve":"^3.0.2"},"_npmOperationalInternal":{"tmp":"tmp/rollup-plugin-credits_1.0.1_1522192624022_0.0797279565356861","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"@observablehq/rollup-plugin-credits","version":"1.1.0","author":{"name":"Tom MacWright"},"license":"MIT","_id":"@observablehq/rollup-plugin-credits@1.1.0","maintainers":[{"name":"jashkenas","email":"jashkenas@gmail.com"},{"name":"mbostock","email":"mike@ocks.org"},{"name":"tmcw","email":"tom@macwright.org"}],"dist":{"shasum":"b238ad09256e00aa1fb42b907fe1d418c5ffec85","tarball":"https://registry.npmjs.org/@observablehq/rollup-plugin-credits/-/rollup-plugin-credits-1.1.0.tgz","fileCount":4,"integrity":"sha512-LDhDGl+vzStJZY9pwuWSQFMLhoK4i8tEBdrbQlgnCkYtWj4Ykcs0B+ieVZjtKqrhNdyenLbKN8kplljbHBAUQw==","signatures":[{"sig":"MEUCIH5QbVNw4aDpioyofmlsoTUBebwfsbAnTr1mG3+T29K4AiEAlN+LOadWGCzM8pFcZXYdDbB8uf+739GtWY+Kbg5zhVY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":8316,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbhF5kCRA9TVsSAnZWagAAlUgP/1v4wb299OYZR3OtMrOe\nqrO2GnvwoQaz92xj+XVE8sKwb9vxrIqUSDP0YXXLh7IaPhOwsLzA6E1wAMbv\nBmXndIKIxMOEhrhX2iyHv7Pa/ntOzBrioWu6WT+EgXPfH39tnxIkfVTwOl5H\nakb3TaBU8QOmOqe307IXL+DKnmG9d0uRYbJZOoGKjdZVrD7goDlmTT5ajpjz\n1PIILoPIbJuCx9S5GAE0UyL8+Hcvy0KQdu2Uk6c6jtFhY1VBzfxIDefo57lw\nUhp3qTwDmK7fAjPGZ4KhyUDRGUZCYPtgCKCrwcNyuNcidzgOx0OozHBbKHuf\n5t6G/x1hyTBj+HWpKFJXXvl6dMtbtycr5e0Y3VN98DtRNldnxEhM8gv8AmmU\n8sFbvhHo5vMi1C3hElr3FUQkJXugARXbFAluJcWGKbrlSCw9DWmKuj02lSCb\nT5eWwoSwaRvm6kT3yxY5WFQzhzE4dbJ7hNbjGYfsyIsgwEx06/RwDgz/BgJ8\n8ex1ThclVYAx5grOY/PYJnwivQ58p1MMlwLl7GE5Yu/J+b65D4cPxuzQ6smw\nONOeR15NIYJqtXOgExWqCoArrYvIJuNWi4u4+vHIa0ERNcuVqGnB+jSb2fnj\n+ZnYEz2/9qEdKII1iYoLLbhLTgT+zNEHAbfoIuuS60x8LkO+5SFJIoyUUZku\n0Yzh\r\n=wFal\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","files":[],"gitHead":"1513606c20d10cf9310546312064efc5f822d8a3","scripts":{"test":"tape test/test.js","release":"standard-version"},"_npmUser":{"name":"tmcw","email":"tom@macwright.org"},"_npmVersion":"6.4.0","description":"Generate credits information for included dependencies","directories":{},"_nodeVersion":"10.8.0","dependencies":{"spdx-expression-parse":"^2.0.2"},"_hasShrinkwrap":false,"devDependencies":{"tape":"^4.8.0","acorn":"^5.3.0","rollup":"^0.55.0","prettier":"^1.10.2","path-to-regexp":"^2.1.0","standard-version":"^4.3.0","rollup-plugin-commonjs":"^8.2.6","rollup-plugin-node-resolve":"^3.0.2"},"_npmOperationalInternal":{"tmp":"tmp/rollup-plugin-credits_1.1.0_1535401571732_0.48787930020961556","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"@observablehq/rollup-plugin-credits","version":"2.0.0","author":{"name":"Tom MacWright"},"license":"MIT","_id":"@observablehq/rollup-plugin-credits@2.0.0","maintainers":[{"name":"jashkenas","email":"jashkenas@gmail.com"},{"name":"mbostock","email":"mike@ocks.org"},{"name":"tmcw","email":"tom@macwright.org"}],"dist":{"shasum":"741769204b60a7993be6a383c02c639aa30adbad","tarball":"https://registry.npmjs.org/@observablehq/rollup-plugin-credits/-/rollup-plugin-credits-2.0.0.tgz","fileCount":4,"integrity":"sha512-PYUKKrCCA4SJ+f1TPPIUhHXfncDWEKt9nbZUsm28QJLHNWqNL+uPnuTbXNXOLElVzMV1B58D0fGqk55Iz2il6w==","signatures":[{"sig":"MEYCIQDkanixUFjM0MBw/SmZgGv03deE+vnwTPt3ViZbyeZlBQIhALwiPyteiVbisTJmyqu6QI5qnZeXTElXgRE3DHZsQynr","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":8874,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcgE87CRA9TVsSAnZWagAAH3MQAIP4BC0Qv2zaAW/G3Gna\nTNy1F0JsFiY4pcHi3u5l2Q3Xh0vamoAGXk9Ze+1U5KbXD9bD8Jq6qDGXGOw7\nTxcucACDDNMQpvQHUyXiKKz4m350cWEHB/H8HF8CKd++ie3lww7AvT2mmLHg\n9GobNuoSN+e84GXa6Ym9CscRIHXXgeEWMOMuVnCBTtmvQ9XenTDyPiG4/a0/\nyXzXlzmsPrbxQyq/9IGwoLVDJyfwSDDQbLcDgBU5fnlPFgw+kGPaeOdv4+VQ\ntkYJfuUn1h6HUxxaeK+WTnqXHojfCjAM9eSFGLQ7lqlmisBiJhMgJcvsM55f\nKUW01ZpLc0P9mDsAbM3DV8uGRo902FSxNReyFfwD0NCmuJoMPvw5zg80NwLI\nyBShL41bwem3bqxoZHsWI7uZg5+/S6rCvUyWb2LqjpyLgFA/MMFjnvOmGUcz\nOn3LRonf8opbVvjlw5LLj5XbB8RFjt0gP24cDInkkMuIqBELY0IIqAHF/aFH\no0fDYjCTUvdjUb62vvGawCeYoCC0wZejZDvu8CIIivQnBYQARXY3yWliF7+e\nBptrQzg0Fn2WHlFPRK4zN+Cg297pl/oBCMT7E28ro2G82Pro5OMFqSTxwz3p\nlTLVGVU7uxAWd1y61EK121C63KoWPPS1D89qHzPb5bT9apkYWeLU32QNLJnu\nVB1Y\r\n=VeG8\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"ac5277100d84c8c2dc9e9bb69e59f7c046ce2362","scripts":{"test":"tape test/test.js","release":"standard-version"},"_npmUser":{"name":"tmcw","email":"tom@macwright.org"},"_npmVersion":"6.8.0","description":"Generate credits information for included dependencies","directories":{},"_nodeVersion":"10.14.1","dependencies":{"spdx-expression-parse":"^3.0.0"},"_hasShrinkwrap":false,"devDependencies":{"tape":"^4.8.0","acorn":"^6.1.1","rollup":"^1","prettier":"^1.10.2","path-to-regexp":"^3.0.0","standard-version":"^5.0.1","rollup-plugin-commonjs":"^9","rollup-plugin-node-resolve":"^4"},"_npmOperationalInternal":{"tmp":"tmp/rollup-plugin-credits_2.0.0_1551912762866_0.48773668417311433","host":"s3://npm-registry-packages"}},"2.0.1":{"name":"@observablehq/rollup-plugin-credits","version":"2.0.1","author":{"name":"Tom MacWright"},"license":"MIT","_id":"@observablehq/rollup-plugin-credits@2.0.1","maintainers":[{"name":"jashkenas","email":"jashkenas@gmail.com"},{"name":"mbostock","email":"mike@ocks.org"},{"name":"tmcw","email":"tom@macwright.org"}],"dist":{"shasum":"67c91336dc3d85ea5435aa2bf4e16d8ed62d0f64","tarball":"https://registry.npmjs.org/@observablehq/rollup-plugin-credits/-/rollup-plugin-credits-2.0.1.tgz","fileCount":4,"integrity":"sha512-TT7a2VogZ47q8d1SzjryKXsX1lgfL4j3iMv9jrPjLjG53dxNJ8pFXl4RKQHXuVQXXyutiRlidfgvuZwHnfZvRQ==","signatures":[{"sig":"MEUCIQCEXbB9Ilspmm2+K1lwX6uzMfkVvXVWd61A54rSUUTnpgIgEW1XegX/l22ILwfq6ieNjlYANfL8+mv3jWiQ98xyIh8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9467,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc1K/ZCRA9TVsSAnZWagAA+XQP/jb4GqXgAXBEesUFiP1o\naV35pzgwK6sB+5nyJO78L76/DuvhrUF64KJBIXx6/+QbF3nRomX12b2QTH1S\n4warqOckfgiFhtjXcwFr5Nqw5vZLLOjsnYVTVabhKqs66LSQgJKSRS+phu3R\nzt7L4yqJdJG5gML64MO+7YcsMMrnXSJqhHlnhr+R1V8NUPOSmj40FXGpW/SK\nMT3s5bxwR0J3cHV9rzjUkCYQkRZIWnugYkW82buKPMO4KLZYxnfhy+BwILZu\noHdd58FMEGxEb+Y/lBqqcf6YMO+TvN4+59sdqR8LZM2W9Gzn7DYqcu9weny1\nqLIi2zMo4WUYrVRQLnXos9mOWp4+4ka2sEE0UtO67NItHjTrchZToAn9sPSB\n097SKWN09u1HtBORYlTN/GofT54P8qk+oZ0I8m2+wGX1UEeM+4eSBmg/jRU0\nkrZQ/tc7+F3qL22DS5V+sqCKkasxNA4em3bFFcLc54BLdOba6hDMJUlMx3b0\n6TT4y4037AjdW4sYbrlyOLWY3eRQ1G5QofiPPoqHuIsNLMULgujUspwYiu6G\nbSxlaO+EldBh4wWTWwOYi8BAjCvF26LuAdpYyY5nbYN2CvrPsqSoSlZIct0C\nQgIg6SmzBj0EmYL4FhMNAoVdJe/PqUItXUtqvhmnszdtg1DWHo/SXTQzygbJ\nvPsz\r\n=k6S5\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"3f87b87c36a3618393beb0a89db1581d7a326d2b","scripts":{"test":"tape test/test.js","release":"standard-version"},"_npmUser":{"name":"tmcw","email":"tom@macwright.org"},"_npmVersion":"6.9.0","description":"Generate credits information for included dependencies","directories":{},"_nodeVersion":"10.14.1","dependencies":{"create-react-context":"^0.2.3","spdx-expression-parse":"^3.0.0"},"_hasShrinkwrap":false,"devDependencies":{"tape":"^4.8.0","acorn":"^6.1.1","rollup":"^1","prettier":"^1.10.2","path-to-regexp":"^3.0.0","standard-version":"^5.0.1","rollup-plugin-commonjs":"^9","rollup-plugin-node-resolve":"^4"},"_npmOperationalInternal":{"tmp":"tmp/rollup-plugin-credits_2.0.1_1557442521141_0.8500298338589747","host":"s3://npm-registry-packages"}},"2.0.2":{"name":"@observablehq/rollup-plugin-credits","version":"2.0.2","author":{"name":"Tom MacWright"},"license":"MIT","_id":"@observablehq/rollup-plugin-credits@2.0.2","maintainers":[{"name":"jashkenas","email":"jashkenas@gmail.com"},{"name":"mbostock","email":"mike@ocks.org"},{"name":"tmcw","email":"tom@macwright.org"}],"dist":{"shasum":"0f15ec60bbe86563d2c3fc41b251911286847492","tarball":"https://registry.npmjs.org/@observablehq/rollup-plugin-credits/-/rollup-plugin-credits-2.0.2.tgz","fileCount":4,"integrity":"sha512-0/tdm2OUg7SEBffbDrR3EIkVdwY1KKcDd3PSbHmNAwVgICwiFBRgyzq/YCKeW9ojnc09nSXVuNwIVoDEDQZPkA==","signatures":[{"sig":"MEQCIH8GgOgBlFktgUpPP8tc8zJ2ZNRUZHsnj6ygcQycxvYUAiBUk1dEudT6oimZZ2ITk49lktVlBz8oJe/5mU63+mKQDA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9856,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh2T+9CRA9TVsSAnZWagAAT/4P/3M6YjP7+3rgZkfydYFw\nKDgxf5oyuecvFNS2R6DhYECW7Tip10IoYoAQFGaMolb1GWOyFxCtia91niUP\nGbUEUylnPun19rt7kigZTq/aTOYOpD35C/J4x3eXY8wQs3g/fvyxq0poxpxZ\n1FrDF1ZO/QoY2Jm9tbyfMnHJUR04ZHzi7v/yXsNd3Hm3l5Ltt66G/XpPyexN\nv+YKZtHVW8+hwT2lOs2lurcwFkJQFPeXgOGONaS2VmTQo9StxAz8HiTYA5Jz\nVHDRicDg6LXpHz2VCsbJ96+FaRWbWXtX0sTETFwGqeD5ucMhv0OoT5Mnn7q7\nN2TG3xkdaHaHw3rU6egsctB21Uxr4uxaLcCVG1Y6VaL2T6lwxMw04h31cn92\njYybLzyHh9CRWXV9JJZKswLFsZZftRjNJDN5XMKF0+YwKXDKAvLhShQ/nrmX\n56x2olMzIw5SB38LZ1j8abeCgYv8MclNZ3bD6HGz4juUXMEdf2GBmgmNKJ65\nqxqdaMPEsCnmrXhxSAKWdnV2lOEYgOhqV5EOPgMC0mtR1VxwPRQ7heYdX3Lg\n6MBX/qUaOt1BuRpD4ITk1hxLbtQ63XCq0nCdJYPGWTPxKAKW9sNKKOwmZjF7\nQDFBaA5XB202NjtmPYHC4/JmvSJ80Q5vZUMfKQ+5Y89YZx5OCEMlFx3v1cve\nzHY4\r\n=eWCV\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"0fcf476e95fba4f6ad7feb138ededb8374d84c15","scripts":{"test":"tape test/test.js","release":"standard-version"},"_npmUser":{"name":"tmcw","email":"tom@macwright.org"},"_npmVersion":"6.9.0","description":"Generate credits information for included dependencies","directories":{},"_nodeVersion":"10.16.3","dependencies":{"create-react-context":"^0.2.3","spdx-expression-parse":"^3.0.0"},"_hasShrinkwrap":false,"devDependencies":{"tape":"^4.8.0","acorn":"^6.1.1","rollup":"^1","prettier":"^1.10.2","path-to-regexp":"^3.0.0","standard-version":"^7.0.0","rollup-plugin-commonjs":"^10.0.0","rollup-plugin-node-resolve":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/rollup-plugin-credits_2.0.2_1567718663441_0.6152366410595043","host":"s3://npm-registry-packages"}}},"time":{"created":"2018-03-27T23:17:03.949Z","modified":"2026-04-06T17:49:44.335Z","1.0.1":"2018-03-27T23:17:04.141Z","1.1.0":"2018-08-27T20:26:11.840Z","2.0.0":"2019-03-06T22:52:42.971Z","2.0.1":"2019-05-09T22:55:21.328Z","2.0.2":"2019-09-05T21:24:23.584Z"},"author":{"name":"Tom MacWright"},"license":"MIT","description":"Generate credits information for included dependencies","maintainers":[{"email":"mike@ocks.org","name":"mbostock"},{"email":"visnup@gmail.com","name":"visnup"},{"email":"fil@rezo.net","name":"recifs"},{"email":"tophtucker@gmail.com","name":"tophtucker"}],"readme":"### rollup-plugin-credits\n\n[![CircleCI](https://circleci.com/gh/observablehq/rollup-plugin-credits/tree/master.svg?style=svg)](https://circleci.com/gh/observablehq/rollup-plugin-credits/tree/master) [![Greenkeeper badge](https://badges.greenkeeper.io/observablehq/rollup-plugin-credits.svg)](https://greenkeeper.io/)\n\nGenerate 'credits' for included code: parses SPDX licenses, groups dependencies\nby license, groups licensed dependencies by author. In the interest of creating\nconcise credits pages.\n\n- Detects license **type** from the `license` specification in `package.json`, which\n  is parsed as [SPDX](https://spdx.org/)\n- Detects authorship from, in order of preference:\n  1. `author` field in package.json\n  1. `authors` field in package.json\n  1. `maintainers` field in package.json\n  1. Parsing a license file, one of\n    - LICENSE\n    - LICENSE.md\n    - LICENSE.txt\n    - license\n    - license.md\n    - license.txt\n\nInstead of a code bundle, this produces a bundle of credits output. Typically\nyou'll run this to create a source file that powers your 'credits' page. The\nformat of this output is as an ES module with a default export. The export is\na list of licenses with `{ license, modules }` keys, which contain a list\nof authors with `{ author, modules }` keys.\n\n### Example output\n\n```js\nexport default [\n  {\n    license: { license: \"MIT\" },\n    modules: [\n      {\n        author: \"James Halliday\",\n        modules: [\n          \"resumer\",\n          \"object-inspect\"\n        ]\n      },\n      { author: \"Dominic Tarr\", modules: [\"through\"] },\n      {\n        author: \"Marijn Haverbeke and Ingvar Stepanyan\",\n        modules: [\"acorn\"]\n      }\n    ]\n  },\n  {\n    license: { license: \"ISC\" },\n    modules: [{ author: \"Isaac Z. Schlueter\", modules: [\"inherits\"] }]\n  }\n];\n```\n\n#### Options\n\n- whitelist: an array or Set of SPDX license identifiers that are allowed in the\n  list. If provided and a non-whitelisted dependency is encountered, the transform\n  will reject.\n","readmeFilename":"README.md"}