{"_id":"spdx-license","_rev":"3-ba4fb3ddf996b80944ff3e2f7c2924c5","name":"spdx-license","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.0":{"name":"spdx-license","version":"1.0.0","description":"Get SPDX license information","license":"MIT","author":{"name":"Connor White","email":"connor.bcw@gmail.com","url":"https://connorwhite.org"},"homepage":"https://connorwhite.org/github/spdx-license","repository":{"type":"git","url":"git+https://github.com/bconnorwhite/spdx-license.git"},"keywords":["typed","license","get","spdx","osi","url","name","text"],"main":"./build/index.js","scripts":{"build":"bob build","postversion":"git push","prepublishOnly":"yarn run build && yarn run test","test":"jest"},"dependencies":{"cross-fetch-json":"^1.1.0"},"devDependencies":{"@bconnorwhite/bob":"^2.0.1","jest":"^26.4.2"},"_id":"spdx-license@1.0.0","dist":{"shasum":"1ffec6668e1d33f0af308d49cf55e00c3da7e25b","integrity":"sha512-Hv5gMr8Nd8eXX1hz2dooxe7bj75+dBrwFs0xhPlajJGKqFyU0ChBcr8zZd2h/YT5xYpGTYcLhS1cWi3VnSmRVA==","tarball":"https://registry.npmjs.org/spdx-license/-/spdx-license-1.0.0.tgz","fileCount":10,"unpackedSize":9659,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfVrSXCRA9TVsSAnZWagAAg+QP/i26sHD2HqSDrrJWW6Md\ne+Dc0XZ1JXqD0tZPtGWFO5FI6AuvW8G8PdXYv56Xvqh34Rnpe8HvQoLw2zkJ\nLQbbklw+Y6cHz4JqynARiseQRiSU3TJ+VAVDvUKbozERaOuki9KaBj9HI/wT\n2l5kBfxIH90330sm4Az8l0J7do7dLpmNNuUrTO4H0Om8DwTPHYKnHRtQAhET\nZyLbafqp8vBXxkF/2UP1tqyEyCXONkI2/5EG4bAXzZOLEJpQHFrx9H2/SuZg\n09McJzdXC8eKvrUFWuyAC+9L/9XWzGyhI4Ft9wD7DnVS7C8XQowQ2FnKfCb6\nxYHHO3VUtlOvQma4yFZYqU5nHGygcmstuwNUA29H/Dg0Jz7xQTZNHUG+n0aJ\nogU0n0pCkCz5QhnTdoVR8ICkEt/mMHSrFU4IT0CHmXn1g4u1aaYcIVmNlrCt\nh1ccd29vKNvAyMo2W9m8xyaeBDwugPaK7Vj63R2AcddEmVBTdpdBWKIBzF0f\n+NHSCxwLoEuPqowhPRJrqNF/Es4tw1FRaRVRAci3HhdQRIYm9f6Vct3AC/+D\nQZmbxKM+rY5btl34LZ+kMpWMaZ/UX2WbAA1leLMxx7q4+MSkYITcO7UjmB7b\nXhQkngz6XEhspppnHPLmTUaZoSTbt2k9fqGumenabzKW0jN6LYb030Mau+CF\nvekF\r\n=z/dM\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFBm26VW2VN2/Z7nPU+NkBUh+zYT12u+P0WnoEZ8PChdAiEAxOdU64xXJkIETMVvISVI2NqQ/EmwOI7+zdEDY/1B6To="}]},"maintainers":[{"name":"bconnorwhite","email":"connor.bcw@gmail.com"}],"_npmUser":{"name":"bconnorwhite","email":"connor.bcw@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/spdx-license_1.0.0_1599517846590_0.636382563430373"},"_hasShrinkwrap":false},"1.0.1":{"name":"spdx-license","version":"1.0.1","description":"Get SPDX license information","license":"MIT","author":{"name":"Connor White","email":"connor.bcw@gmail.com","url":"https://connorwhite.org"},"homepage":"https://connorwhite.org/github/spdx-license","repository":{"type":"git","url":"git+https://github.com/bconnorwhite/spdx-license.git"},"keywords":["typed","license","get","spdx","osi","url","name","text","licenses","mit","bsd","list","open","source","software","id","ids","identifiers"],"main":"./build/index.js","scripts":{"build":"bob build","postversion":"git push","prepublishOnly":"yarn run build && yarn run test","test":"jest"},"dependencies":{"cross-fetch-json":"^1.1.0"},"devDependencies":{"@bconnorwhite/bob":"^2.0.1","jest":"^26.4.2"},"_id":"spdx-license@1.0.1","dist":{"shasum":"ebca00d6cc1103eec7e73e182f000b3f00f0e97c","integrity":"sha512-KNiR+Gaj8OITLoV7TBNDYU3uYZ3leGTglrj1ruqiEEtp3i4J3lXn8p9s8km9NKnG4UIWfxWQNtlvKONkEj4+jQ==","tarball":"https://registry.npmjs.org/spdx-license/-/spdx-license-1.0.1.tgz","fileCount":10,"unpackedSize":9791,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfVrUsCRA9TVsSAnZWagAA5koQAI9BOXyRMX1DVXbyRwvu\n3Bv2VSXm/xJfcbwcMZ3mt+rmxuZ6xitLJ+r4vsoKMj3m8gCuYnGYU89gMtyE\neqHSIoFilXQvaNt4IRk0Ey/sGGB7/07C51nH6DOQdgj77h/BGBKhSwR34B33\nsBhcd7+yMAmNO+fXaioK2OqA+xZM7Axnhnun6ewbavnvigjsqXlnLjoztc0K\nroAP6Ss+A2Cr7+FQeHuN0v0il0ANNuF7pnQGUr/3NYAkHToCWeYLeefu9hpl\no82o+MW+tTcc0hZqUt8J11g1OPBgxetGkv+lpTXprk+P4mie2PSptJ7QCQOe\nvc2K6iFpbIzli8XANmM7DhRajcyBPjJPYyl/Ub1OCKEdRf31eaQp5STNotWS\na/OylgV8hD6FAx0xH8XVvblcsuqs7TWUY39YJYFNED0B/Dlki21vNpIxJDAN\nt2/Gl1geJ0QxY7Q/zsQZQfltizLwjLz1yjGUKIHa3joEN6TfTRC72Me6eu8d\nYl2oZ/b/PvCEz160sQUxg+ptAHpfjw4/19CPNOdZoqDKmDip5oSnSZ0LAlJM\nyKRJ63ysibTIIyxEkpi5JwI8L5+wp4pIj4HoafwXUwZLIP7UinSTf7ZKL+sL\nGbou2tc3pezkYat3FNGbR1kG2TmkdhZcZJRu44DYTvlcLfMUjOsZj/Nas0DO\nAVYB\r\n=Ybdo\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGaGAlCT2Ne1eZgOKH5oBY4Qs7SZSHD4Dakvz1YiuCVyAiBijTWezzcRZeBE2MAoNAo0AV8XUw9khGX6lfJSZfZOYQ=="}]},"maintainers":[{"name":"bconnorwhite","email":"connor.bcw@gmail.com"}],"_npmUser":{"name":"bconnorwhite","email":"connor.bcw@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/spdx-license_1.0.1_1599517996003_0.5399060063065753"},"_hasShrinkwrap":false},"1.0.2":{"name":"spdx-license","version":"1.0.2","description":"Get SPDX license information","license":"MIT","author":{"name":"Connor White","email":"connor.bcw@gmail.com","url":"https://connorwhite.org"},"homepage":"https://connorwhite.org/github/spdx-license","repository":{"type":"git","url":"git+https://github.com/bconnorwhite/spdx-license.git"},"keywords":["typed","license","get","spdx","osi","url","name","text","licenses","mit","bsd","list","open","source","software","id","ids","identifiers"],"main":"./build/index.js","scripts":{"build":"bob build","postversion":"git push","prepublishOnly":"yarn run build && yarn run test","test":"jest"},"dependencies":{"cross-fetch-json":"^1.1.1"},"devDependencies":{"@bconnorwhite/bob":"^2.1.0","jest":"^26.4.2"},"_id":"spdx-license@1.0.2","dist":{"shasum":"e22b9648e6444e31f5eb209cf85742e7053436f8","integrity":"sha512-ovp4mViy0/iiCU6fN6L2kGi+ewMCrFMcOJxDUHRegeACnFUwF6V5491UN0CxuKJg1BgeVkIMBJPXKiFzgRNkhw==","tarball":"https://registry.npmjs.org/spdx-license/-/spdx-license-1.0.2.tgz","fileCount":10,"unpackedSize":9791,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfYY90CRA9TVsSAnZWagAAu2MP+wZN7FrH5CIh+bFxiokk\nML4o1rwk8urdGUJTl3FNPFeVNP/MRurD/DBTCbE+M/C+Zm8jUBGNBqBxoKak\nCE7z14QD/YJkl4YSUePSndRvx4YoaJBHyuZ5Eyw8eZwaGj9aQqKhIVXtnkrM\nWO+34vRxmQINboY8BsU1zS1TrDKIsQChpPsmxHnrn6BrHGVYj6RErb2/rJkx\n22a71R9Dqom8NGgZoBXavW3cDi+atfVMdrnTqvNbOeGkcvmtA4HRwDMTCE8U\n7vGXLbCrnEb08OLlJSqWGx7ZGV/BRBj1DaSR8red8U+Uud0IYraWnBkc67+A\nqF7ihFF13jJURJkEjfm/fH/HatlrdkPxmt+T1Uko8hUzXA7P4+7Yxr0jkU06\nD8h7hKD+Ixd7A8ZDeXhh5d+w2E78x8ODV1oasAWc4evZe5I16ig1mVEXR1y/\nTQE0+Di7l6BT8bjZYZYZxlG7JOUa/i67ngwO1vSckMHDDNAX8OPelVBbgI3O\nn42UMahQmb60YLcdSIH58Sgac/WfdnJYz8VpZyHeZlkeVUbQN/HMXUCnE5p/\nAQpOgv0aW9jxRLQFNckDyIUFGhoMUcVNwU4J1Rxu9wGe8LdHJ7wRSAbB0E/a\nJuOKlAP80R9q5bX7snkssryMeDgJLGThj0doiZ6L5sAiQmSHVVNyJBTP+J//\nqyGS\r\n=YNjF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBaricVDb2HBcdMmI2sI/FVV5dbY40MURitCVcQWIiXBAiBWBF+M7iv2zsbiNyqqDnYpcVXRwR6PRPFd3e6waz4vHA=="}]},"maintainers":[{"name":"bconnorwhite","email":"connor.bcw@gmail.com"}],"_npmUser":{"name":"bconnorwhite","email":"connor.bcw@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/spdx-license_1.0.2_1600229235943_0.6202386404336753"},"_hasShrinkwrap":false}},"time":{"created":"2020-09-07T22:30:46.589Z","1.0.0":"2020-09-07T22:30:46.706Z","modified":"2022-05-18T10:12:45.527Z","1.0.1":"2020-09-07T22:33:16.100Z","1.0.2":"2020-09-16T04:07:16.094Z"},"maintainers":[{"name":"bconnorwhite","email":"connor.bcw@gmail.com"}],"description":"Get SPDX license information","homepage":"https://connorwhite.org/github/spdx-license","keywords":["typed","license","get","spdx","osi","url","name","text","licenses","mit","bsd","list","open","source","software","id","ids","identifiers"],"repository":{"type":"git","url":"git+https://github.com/bconnorwhite/spdx-license.git"},"author":{"name":"Connor White","email":"connor.bcw@gmail.com","url":"https://connorwhite.org"},"license":"MIT","readme":"<div align=\"center\">\n  <h1>spdx-license</h1>\n  <a href=\"https://npmjs.com/package/spdx-license\">\n    <img alt=\"npm\" src=\"https://img.shields.io/npm/v/spdx-license.svg\">\n  </a>\n  <a href=\"https://github.com/bconnorwhite/spdx-license\">\n    <img alt=\"typescript\" src=\"https://img.shields.io/github/languages/top/bconnorwhite/spdx-license.svg\">\n  </a>\n  <a href=\"https://github.com/bconnorwhite/spdx-license\">\n    <img alt=\"GitHub stars\" src=\"https://img.shields.io/github/stars/bconnorwhite/spdx-license?label=Stars%20Appreciated%21&style=social\">\n  </a>\n  <a href=\"https://twitter.com/bconnorwhite\">\n    <img alt=\"Twitter Follow\" src=\"https://img.shields.io/twitter/follow/bconnorwhite.svg?label=%40bconnorwhite&style=social\">\n  </a>\n</div>\n\n<br />\n\n> Get SPDX license information.\n\nUses [cross-fetch-json](https://npmjs.com/package/cross-fetch-json) to support usage in both brower and node.\n\n## Installation\n\n```bash\nyarn add spdx-license\n```\n\n```bash\nnpm install spdx-license\n```\n\n<br />\n\n## API\n\n### Types\n```ts\nimport { getLicense, getLicenses, FullLicense, Licenses, License } from \"spdx-license\";\n\nfunction getLicense(id: string): Promise<FullLicense | undefined>;\n\nfunction getLicenses(): Promise<Licenses>;\n\ntype FullLicense = {\n  id: string;\n  name: string;\n  url: string;\n  isDeprecated: boolean;\n  isOSIApproved: boolean;\n  isFSFLibre?: boolean;\n  text: string;\n};\n\ntype Licenses = {\n  [id: string]: License;\n}\n\ntype License = {\n  id: string;\n  name: string;\n  url: string;\n  isDeprecated: boolean;\n  isOSIApproved: boolean;\n  isFSFLibre?: boolean;\n  getText: () => Promise<string | undefined>;\n}\n```\n\n<br />\n\n<h2>Dependencies<img align=\"right\" alt=\"dependencies\" src=\"https://img.shields.io/david/bconnorwhite/spdx-license.svg\"></h2>\n\n- [cross-fetch-json](https://npmjs.com/package/cross-fetch-json): Universal fetch API that only returns JSON\n\n##\n\n<br />\n\n<h2>Dev Dependencies<img align=\"right\" alt=\"David\" src=\"https://img.shields.io/david/dev/bconnorwhite/spdx-license.svg\"></h2>\n\n- [@bconnorwhite/bob](https://npmjs.com/package/@bconnorwhite/bob): Bob is a toolkit for TypeScript projects\n- [jest](https://npmjs.com/package/jest): Delightful JavaScript Testing.\n\n##\n\n<br />\n\n<h2>License <img align=\"right\" alt=\"license\" src=\"https://img.shields.io/npm/l/spdx-license.svg\"></h2>\n\n[MIT](https://mit-license.org/)\n\n<br />\n\n## Related Packages:\n- [npm-description](https://npmjs.com/package/npm-description): Fetch a package's description from NPM\n- [all-package-names](https://npmjs.com/package/all-package-names): Get all NPM package names.\n- [is-name-taken](https://npmjs.com/package/is-name-taken): Check if an NPM package name is taken\n","readmeFilename":"README.md"}