{"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":"http://registry-npm.ywwl.com/sri-toolbox/download/sri-toolbox-0.0.1.tgz","integrity":"sha512-QRmqF5pMyHIpArwuSncyzmqtvfh2Q2vHq13SGGP8qXjnWccmsz8PljzB0l/ZbKaiEnYAEnkFbcqxxXrSUXsn1A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA7qQ5W96ZWDq3zlI8ATo5HyRN8SVJMgbJ1mul3TIAt2AiAG8tNbOIX+fwhkODDS+nnevmTkBlZNU/aMCLYuZElogQ=="}],"size":35936,"noattachment":false,"key":"/sri-toolbox/-/sri-toolbox-0.0.1.tgz"},"directories":{},"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","publish_time":1422588980025,"_cnpm_publish_time":1422588980025,"dist-tags":{"latest":"0.2.0"}}