{"_id":"sri-toolbox","_rev":"17-f81d71f803c3f0c4735ffeb28b6dba42","name":"sri-toolbox","description":"Subresource Integrity tools","dist-tags":{"latest":"0.2.0"},"versions":{"0.0.0":{"name":"sri-toolbox","version":"0.0.0","description":"Subresource Integrity tools","author":{"name":"Neftaly Hernandez","email":"neftaly.hernandez@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git://github.com/neftaly/npm-sri-toolbox.git"},"main":"sri-toolbox","scripts":{"test":"expresso"},"keywords":["SRI","Subresource Integrity","integrity","security"],"dependencies":{"rfc6920-toolbox":"0.x.x"},"devDependencies":{"expresso":"0.9.2"},"engines":{"node":">= 0.10.4"},"gitHead":"f965f74c773af93d0d5cd67e8e4e1e7ace31f7bf","bugs":{"url":"https://github.com/neftaly/npm-sri-toolbox/issues"},"homepage":"https://github.com/neftaly/npm-sri-toolbox","_id":"sri-toolbox@0.0.0","_shasum":"5879fdc791875a0346ade6179dfe6a73a16ecb03","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"neftaly","email":"neftaly.hernandez@gmail.com"},"maintainers":[{"name":"neftaly","email":"neftaly.hernandez@gmail.com"}],"dist":{"shasum":"5879fdc791875a0346ade6179dfe6a73a16ecb03","tarball":"https://registry.npmjs.org/sri-toolbox/-/sri-toolbox-0.0.0.tgz","integrity":"sha512-xxpJRk92qDCfSraozaUCYggmJ6cLH8Bzz4y3W8qu0GluvVp1XgLJ93qTKx5T1FDh0kL9gWMB3G1LN7G7nt4yYA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDz0IUtr+ru1RZbuE+zsYDgmkrMcZLBAw88FzyrMykFHAiBuKdKRWI4IhczR/TKWjQMmW6MUpm4br6DFyY8D0UXSow=="}]}},"0.0.1":{"name":"sri-toolbox","version":"0.0.1","description":"Subresource Integrity tools","author":{"name":"Neftaly Hernandez","email":"neftaly.hernandez@gmail.com"},"license":"MIT","repository":{"type":"git","url":"https://github.com/neftaly/npm-sri-toolbox.git"},"main":"main","scripts":{"test":"mocha"},"keywords":["sri-toolbox","SRI","Subresource Integrity","integrity","security"],"dependencies":{"ramda":"~0.8.0","rfc6920-toolbox":"0.1.1"},"devDependencies":{"mocha":"~2.1.0"},"engines":{"node":">= 0.10.4"},"gitHead":"9f49c4f95382f8a36a089fbd166ab1819f1c9de6","bugs":{"url":"https://github.com/neftaly/npm-sri-toolbox/issues"},"homepage":"https://github.com/neftaly/npm-sri-toolbox","_id":"sri-toolbox@0.0.1","_shasum":"f9b783c21d6e3c6f4a290abe5d91431f1f654b12","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"neftaly","email":"neftaly.hernandez@gmail.com"},"maintainers":[{"name":"neftaly","email":"neftaly.hernandez@gmail.com"}],"dist":{"shasum":"f9b783c21d6e3c6f4a290abe5d91431f1f654b12","tarball":"https://registry.npmjs.org/sri-toolbox/-/sri-toolbox-0.0.1.tgz","integrity":"sha512-QRmqF5pMyHIpArwuSncyzmqtvfh2Q2vHq13SGGP8qXjnWccmsz8PljzB0l/ZbKaiEnYAEnkFbcqxxXrSUXsn1A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA7qQ5W96ZWDq3zlI8ATo5HyRN8SVJMgbJ1mul3TIAt2AiAG8tNbOIX+fwhkODDS+nnevmTkBlZNU/aMCLYuZElogQ=="}]}},"0.1.0":{"name":"sri-toolbox","version":"0.1.0","description":"Subresource Integrity tools","author":{"name":"Neftaly Hernandez","email":"neftaly.hernandez@gmail.com"},"license":"MIT","repository":{"type":"git","url":"https://github.com/neftaly/npm-sri-toolbox.git"},"main":"main","scripts":{"test":"mocha"},"keywords":["sri-toolbox","SRI","Subresource Integrity","integrity","security"],"dependencies":{},"devDependencies":{"mocha":"^2.1.0"},"engines":{"node":">= 0.10.4"},"gitHead":"099a0e50b498e46c75ff983b61c8f8b6ced068fb","bugs":{"url":"https://github.com/neftaly/npm-sri-toolbox/issues"},"homepage":"https://github.com/neftaly/npm-sri-toolbox","_id":"sri-toolbox@0.1.0","_shasum":"c3131ed3960981a21d0090a011bef3f6ac608fe0","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"neftaly","email":"neftaly.hernandez@gmail.com"},"maintainers":[{"name":"neftaly","email":"neftaly.hernandez@gmail.com"}],"dist":{"shasum":"c3131ed3960981a21d0090a011bef3f6ac608fe0","tarball":"https://registry.npmjs.org/sri-toolbox/-/sri-toolbox-0.1.0.tgz","integrity":"sha512-ttFgHJbf0Rm3sScbKmICgpHsbHTwMBJmjG++NAL7ublim4sFxFkIMHCRSYS7izl+hWYGcXjekHEyPUlraUExHw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCyXiaSEdU9VMXBUMVD38mY7pL4SCAVBPUzIAyiH1Jo3wIhAM+0wmtftLlMqwHfaYxSdPkgK2zBbHOlzRxtxfTPx+a2"}]}},"0.1.1":{"name":"sri-toolbox","version":"0.1.1","description":"Subresource Integrity tools","author":{"name":"Neftaly Hernandez","email":"neftaly.hernandez@gmail.com"},"license":"MIT","repository":{"type":"git","url":"https://github.com/neftaly/npm-sri-toolbox.git"},"main":"main","scripts":{"test":"mocha"},"keywords":["sri-toolbox","SRI","Subresource Integrity","integrity","security"],"dependencies":{},"devDependencies":{"mocha":"^2.1.0"},"engines":{"node":">= 0.10.4"},"gitHead":"6148eb8206e39cc094b6d6df7d92f6adf583eb85","bugs":{"url":"https://github.com/neftaly/npm-sri-toolbox/issues"},"homepage":"https://github.com/neftaly/npm-sri-toolbox","_id":"sri-toolbox@0.1.1","_shasum":"8e52911c2a4567e1a9926db93299adf436923908","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"neftaly","email":"neftaly.hernandez@gmail.com"},"maintainers":[{"name":"neftaly","email":"neftaly.hernandez@gmail.com"}],"dist":{"shasum":"8e52911c2a4567e1a9926db93299adf436923908","tarball":"https://registry.npmjs.org/sri-toolbox/-/sri-toolbox-0.1.1.tgz","integrity":"sha512-Mbpou0izBiuubAdEoJn8Fnj7cAefo3I5EgorulzoRVmHJOEwE79Ad/mpLVCvV9vS9rg7b8CC+KpQUBxtQ7M/jQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC2+DVAgRNsnAFMZ2LbUcipY5hMi4D2YXjfvtnLP2Xf0QIgHcdaAcT1Dg1oT7/qGLx2gCO5b9tn9IpoW/H0Bz+yxQ4="}]}},"0.1.2":{"name":"sri-toolbox","version":"0.1.2","description":"Subresource Integrity tools","author":{"name":"Neftaly Hernandez","email":"neftaly.hernandez@gmail.com"},"license":"MIT","repository":{"type":"git","url":"https://github.com/neftaly/npm-sri-toolbox.git"},"main":"main","scripts":{"test":"mocha"},"keywords":["sri-toolbox","SRI","Subresource Integrity","integrity","security"],"dependencies":{},"devDependencies":{"mocha":"^2.1.0"},"engines":{"node":">= 0.10.4"},"gitHead":"828aafe4a5c3f1aadeb53df353068acb2aaceda9","bugs":{"url":"https://github.com/neftaly/npm-sri-toolbox/issues"},"homepage":"https://github.com/neftaly/npm-sri-toolbox","_id":"sri-toolbox@0.1.2","_shasum":"9725b8752031d366e83980119ad2d0d2db5529a3","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"neftaly","email":"neftaly.hernandez@gmail.com"},"maintainers":[{"name":"neftaly","email":"neftaly.hernandez@gmail.com"}],"dist":{"shasum":"9725b8752031d366e83980119ad2d0d2db5529a3","tarball":"https://registry.npmjs.org/sri-toolbox/-/sri-toolbox-0.1.2.tgz","integrity":"sha512-mYPpPYAhCUstUwc0V1Aiediov+3xu4TeVwFZsbFR7K7Dq2AzJwrNMrwxyILN/srIjS5/fVly07E4C3TjoTWsVA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCl0nYsPfx2Z+QhWtAISgHERyn+ftHP97Pg0IOz1dzUJAIgaqiqyuL5sw5v5etGWeo7sFs8l7FDXNnKMkVHe+ofuz4="}]}},"0.1.3":{"name":"sri-toolbox","version":"0.1.3","description":"Subresource Integrity tools","author":{"name":"Neftaly Hernandez","email":"neftaly.hernandez@gmail.com"},"license":"MIT","repository":{"type":"git","url":"https://github.com/neftaly/npm-sri-toolbox.git"},"main":"main","scripts":{"test":"mocha"},"keywords":["sri-toolbox","SRI","Subresource Integrity","integrity","security"],"dependencies":{},"devDependencies":{"coveralls":"^2.11.2","istanbul":"^0.3.6","mocha":"^2.1.0"},"engines":{"node":">= 0.10.4"},"gitHead":"31bb3e4626adca8e40315173724c332387f19789","bugs":{"url":"https://github.com/neftaly/npm-sri-toolbox/issues"},"homepage":"https://github.com/neftaly/npm-sri-toolbox","_id":"sri-toolbox@0.1.3","_shasum":"8844999ee6d67988ec8b1f92330e2cf2168d0f09","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"neftaly","email":"neftaly.hernandez@gmail.com"},"maintainers":[{"name":"neftaly","email":"neftaly.hernandez@gmail.com"}],"dist":{"shasum":"8844999ee6d67988ec8b1f92330e2cf2168d0f09","tarball":"https://registry.npmjs.org/sri-toolbox/-/sri-toolbox-0.1.3.tgz","integrity":"sha512-FFMjaaRMvfUq3sWuyvEVHK/wfVEwrMR+SS6noZKDhG2pK/g+yXzDEJgbr0TXcO9V+vFquEnMtaPY+DpdosIQVw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC/QYduQ/L1pIF2zOqPeHnCnhetYeeChV0WDWlNfa9GHAiAIMZLso89c0BM2H8BR4ik4pt34shhY3hJPSxBfv/SZeA=="}]}},"0.2.0":{"name":"sri-toolbox","version":"0.2.0","description":"Subresource Integrity tools","author":{"name":"Neftaly Hernandez","email":"neftaly.hernandez@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/neftaly/npm-sri-toolbox.git"},"main":"main","scripts":{"test":"mocha"},"keywords":["sri-toolbox","SRI","Subresource Integrity","integrity","security"],"dependencies":{},"devDependencies":{"coveralls":"^2.11.2","istanbul":"^0.3.6","mocha":"^2.1.0"},"engines":{"node":">= 0.10.4"},"gitHead":"aaa89ac18127d0119f6e2bff86cf9e49099f9049","bugs":{"url":"https://github.com/neftaly/npm-sri-toolbox/issues"},"homepage":"https://github.com/neftaly/npm-sri-toolbox#readme","_id":"sri-toolbox@0.2.0","_shasum":"a7fea5c3fde55e675cf1c8c06f3ebb5c2935835e","_from":".","_npmVersion":"2.13.0","_nodeVersion":"0.10.39","_npmUser":{"name":"neftaly","email":"neftaly.hernandez@gmail.com"},"dist":{"shasum":"a7fea5c3fde55e675cf1c8c06f3ebb5c2935835e","tarball":"https://registry.npmjs.org/sri-toolbox/-/sri-toolbox-0.2.0.tgz","integrity":"sha512-DQIMWCAr/M7phwo+d3bEfXwSBEwuaJL+SJx9cuqt1Ty7K96ZFoHpYnSbhrQZEr0+0/GtmpKECP8X/R4RyeTAfw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDKj7KsnY5RJNkaY9w3RhHoO/275prWl3GkeI2fNKo6kgIgaHWFQqaYTGxK6EXjqYzSlNlkVH5eNTF4TKNGDyoWqbI="}]},"maintainers":[{"name":"neftaly","email":"neftaly.hernandez@gmail.com"}]}},"readme":"# sri-toolbox [![Build Status](https://travis-ci.org/neftaly/npm-sri-toolbox.svg?branch=master)](https://travis-ci.org/neftaly/npm-sri-toolbox) [![Coverage Status](https://coveralls.io/repos/neftaly/npm-sri-toolbox/badge.svg?branch=master)](https://coveralls.io/r/neftaly/npm-sri-toolbox?branch=master)\n\n[Subresource Integrity](http://www.w3.org/TR/SRI/) tools.\n\n**SemVer note:** As the SRI spec has not yet been finalized, minor releases < 1.0.0 will contain breaking changes.\n\nInstall\n-------\n```shell\nnpm install sri-toolbox\n```\n\nUsage\n-----\n```js\nvar sriToolbox = require(\"sri-toolbox\");\n\nvar jquerySourceCode = file(\"jquery-1.10.2.min.js\");\n\nvar integrity = sriToolbox.generate({\n    algorithms: [\"sha256\"]\n}, jquerySourceCode);\n//=> \"sha256-C6CB9UYIS9UJeqinPHWTHVqh/E1uhG5Twh+Y5qFQmYg=\"\n```\n\nYou may also access the data used to build the integrity attribute, using the option \"full\":\n```js\nvar integrityObject = sriToolbox.generate({\n    full: true\n}, jquerySourceCode);\n//=> object\n```\n```json\n{\n    \"hashes\": {\n        \"sha256\": \"C6CB9UYIS9UJeqinPHWTHVqh/E1uhG5Twh+Y5qFQmYg=\"\n    },\n    \"integrity\": \"sha256-C6CB9UYIS9UJeqinPHWTHVqh/E1uhG5Twh+Y5qFQmYg=\"\n}\n```\n\nAPI\n-------\n\n### generate\n\nGenerate creates a Sub-resource Integrity attribute from a data string.\n\n#### Options\n\nKey: type **name** *= default*  \n\n* array **algorithms** *= [\"sha256\"]*  \n    List of hashing algorithms\n\n* string **delimiter** *= \" \"*  \n    Integrity attribute delimiter\n\n* boolean **full** *= false*  \n    Return a string if false, object if true. See example.\n","maintainers":[{"email":"francois@fmarier.org","name":"fmarier"},{"email":"neftaly.hernandez@gmail.com","name":"neftaly"}],"time":{"modified":"2022-06-26T23:24:29.946Z","created":"2015-01-14T08:25:13.103Z","0.0.0":"2015-01-14T08:25:13.103Z","0.0.1":"2015-01-30T03:36:20.025Z","0.1.0":"2015-02-19T22:57:37.827Z","0.1.1":"2015-02-25T21:14:48.890Z","0.1.2":"2015-02-25T22:25:03.678Z","0.1.3":"2015-03-02T20:46:09.861Z","0.2.0":"2015-07-13T12:06:13.324Z"},"homepage":"https://github.com/neftaly/npm-sri-toolbox#readme","keywords":["sri-toolbox","SRI","Subresource Integrity","integrity","security"],"repository":{"type":"git","url":"git+https://github.com/neftaly/npm-sri-toolbox.git"},"author":{"name":"Neftaly Hernandez","email":"neftaly.hernandez@gmail.com"},"bugs":{"url":"https://github.com/neftaly/npm-sri-toolbox/issues"},"license":"MIT","readmeFilename":"README.md"}