{"_id":"@asset-pipe/js-writer","_rev":"8-e4b914b0d1566e93b2d90a6187999572","name":"@asset-pipe/js-writer","description":"Javascript asset feed writer","dist-tags":{"latest":"2.0.4"},"versions":{"1.0.0":{"name":"@asset-pipe/js-writer","version":"1.0.0","publishConfig":{"access":"public"},"author":{"name":"Trygve Lie","email":"post@trygve-lie.com"},"description":"JavaScript asset feed writer","main":"./lib/writer.js","repository":{"type":"git","url":"git+ssh://git@github.com/asset-pipe/asset-pipe-js-writer.git"},"keywords":["javascript","assets"],"contributors":[{"name":"Trygve Lie","email":"post@trygve-lie.com"}],"bugs":{"url":"https://github.com/asset-pipe/asset-pipe-js-writer/issues"},"license":"MIT","dependencies":{"asset-pipe-common":"^1.0.0-beta.6","readable-stream":"^2.3.3","browserify":"^14.4.0","uglify-js":"^3.1.3"},"devDependencies":{"asset-pipe-test-es5a":"^1.0.0","eslint-config-finn":"^3.0.0","JSONStream":"^1.3.1","eslint":"^4.1.1","tap":"^10.7.2"},"scripts":{"lint":"eslint .","test":"tap test/*.js"},"files":["lib"],"gitHead":"87a8c61a5bffeb22dd8d070232a502d2a8226070","homepage":"https://github.com/asset-pipe/asset-pipe-js-writer#readme","_id":"@asset-pipe/js-writer@1.0.0","_npmVersion":"5.5.1","_nodeVersion":"8.9.0","_npmUser":{"name":"digitalsadhu","email":"digitalsadhu@gmail.com"},"dist":{"integrity":"sha512-xEI0IBiUfOgQvZddB/6P1KhSswUwm5o2NUQXu5K20Zfc7TMJNd6PGHw831i41oTtIxOQJLqpcS8DazbCKULGbQ==","shasum":"edd4a0c1698ccc9d6afa8cfebe7db75f7e4bbbf0","tarball":"https://registry.npmjs.org/@asset-pipe/js-writer/-/js-writer-1.0.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFRaObPVfHi6owuAExIvzhZ8sqEUUZAhDDcoMCOlBplJAiB7ALLWDTpjyfNUQbWMEYh2V1m7cypCR+Kd2/uz7ScRYw=="}]},"maintainers":[{"name":"digitalsadhu","email":"digitalsadhu@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/js-writer-1.0.0.tgz_1511364628937_0.08807557867839932"},"directories":{}},"2.0.0":{"name":"@asset-pipe/js-writer","version":"2.0.0","author":{"name":"Trygve Lie","email":"post@trygve-lie.com"},"description":"Javascript asset feed writer","main":"./lib/writer.js","repository":{"type":"git","url":"git+https://github.com/asset-pipe/asset-pipe-js-writer.git"},"keywords":["javascript","assets"],"contributors":[{"name":"Trygve Lie","email":"post@trygve-lie.com"}],"bugs":{"url":"https://github.com/asset-pipe/asset-pipe-js-writer/issues"},"license":"MIT","dependencies":{"asset-pipe-common":"^1.0.0-beta.6","browserify":"^15.1.0","readable-stream":"^2.3.3"},"devDependencies":{"@commitlint/cli":"^6.0.5","@commitlint/config-conventional":"^6.0.4","JSONStream":"^1.3.2","asset-pipe-test-es5a":"^1.0.0","commitizen":"^2.9.6","cz-conventional-changelog":"^2.1.0","eslint":"^4.16.0","eslint-config-finn":"^3.0.0","eslint-config-finn-prettier":"^3.0.1","eslint-plugin-import":"^2.8.0","husky":"^0.14.3","jest":"^22.1.4","lint-staged":"^6.1.0","prettier":"^1.10.2","semantic-release":"^12.4.1"},"scripts":{"lint":"eslint .","test":"jest --coverage","lint:format":"eslint --fix .","lint:commit":"commitlint --from=HEAD~1","precommit":"lint-staged","cm":"git-cz","semantic-release":"semantic-release"},"files":["lib"],"jest":{"testEnvironment":"node","clearMocks":true,"coverageThreshold":{"global":{"branches":100,"functions":100,"lines":100,"statements":100}}},"prettier":{"singleQuote":true,"trailingComma":"all","tabWidth":4,"overrides":[{"files":"*.json","options":{"tabWidth":2}},{"files":".eslintrc","options":{"parser":"json","tabWidth":2}}]},"lint-staged":{"*.js":["eslint --fix --config ./.eslintrc","git add"],"{*.json,*.md,.eslintrc}":["prettier --write","git add"]},"config":{"commitizen":{"path":"cz-conventional-changelog"}},"commitlint":{"extends":["@commitlint/config-conventional"]},"gitHead":"4df704e4cc0d10159f279381f4d7dd55f9235d7e","homepage":"https://github.com/asset-pipe/asset-pipe-js-writer#readme","_id":"@asset-pipe/js-writer@2.0.0","_npmVersion":"5.6.0","_nodeVersion":"9.5.0","_npmUser":{"name":"digitalsadhu","email":"digitalsadhu@gmail.com"},"dist":{"integrity":"sha512-wGfBaDU3PLLX1qBkJPy4UZn1iHG/Ejb/2UxEhnygVL6lzc+zDZWY8uL+dMl8a5EuuWp8hstANdnu47lDPFrrSA==","shasum":"6a2d0684e7f359e055f790e34afff5d7853c7b59","tarball":"https://registry.npmjs.org/@asset-pipe/js-writer/-/js-writer-2.0.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG4hcoLm8IOUZaCdSdhxUc+eio+fQrG3m/s9Cl8Cp50MAiBcrMOY9oE6wh/aCNmDVxLkxbgfPFnbU0eM8VSJh0MBSQ=="}]},"maintainers":[{"name":"simenb","email":"sbekkhus91@gmail.com"},{"name":"digitalsadhu","email":"digitalsadhu@gmail.com"},{"name":"sveisvei","email":"sveinung.rosaker@gmail.com"},{"name":"trygve","email":"post@trygve-lie.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/js-writer-2.0.0.tgz_1517583881691_0.7844017196912318"},"directories":{}},"2.0.1":{"name":"@asset-pipe/js-writer","version":"2.0.1","author":{"name":"Trygve Lie","email":"post@trygve-lie.com"},"description":"Javascript asset feed writer","main":"./lib/writer.js","repository":{"type":"git","url":"git+https://github.com/asset-pipe/asset-pipe-js-writer.git"},"keywords":["javascript","assets"],"contributors":[{"name":"Trygve Lie","email":"post@trygve-lie.com"}],"bugs":{"url":"https://github.com/asset-pipe/asset-pipe-js-writer/issues"},"license":"MIT","dependencies":{"asset-pipe-common":"^1.0.0-beta.6","browserify":"^15.1.0","readable-stream":"^2.3.3"},"devDependencies":{"@commitlint/cli":"^6.0.5","@commitlint/config-conventional":"^6.0.4","JSONStream":"^1.3.2","asset-pipe-test-es5a":"^1.0.0","commitizen":"^2.9.6","cz-conventional-changelog":"^2.1.0","eslint":"^4.16.0","eslint-config-finn":"^3.0.0","eslint-config-finn-prettier":"^3.0.1","eslint-plugin-import":"^2.8.0","husky":"^0.14.3","jest":"^22.1.4","lint-staged":"^6.1.0","prettier":"^1.10.2","semantic-release":"^12.4.1"},"scripts":{"lint":"eslint .","test":"jest --coverage","lint:format":"eslint --fix .","lint:commit":"commitlint --from=HEAD~1","precommit":"lint-staged","cm":"git-cz","semantic-release":"semantic-release"},"files":["lib"],"jest":{"testEnvironment":"node","clearMocks":true,"coverageThreshold":{"global":{"branches":100,"functions":100,"lines":100,"statements":100}}},"prettier":{"singleQuote":true,"trailingComma":"all","tabWidth":4,"overrides":[{"files":"*.json","options":{"tabWidth":2}},{"files":".eslintrc","options":{"parser":"json","tabWidth":2}}]},"lint-staged":{"*.js":["eslint --fix --config ./.eslintrc","git add"],"{*.json,*.md,.eslintrc}":["prettier --write","git add"]},"config":{"commitizen":{"path":"cz-conventional-changelog"}},"commitlint":{"extends":["@commitlint/config-conventional"]},"gitHead":"6287d5825a655a6d11060b75cec93a1086dd296c","homepage":"https://github.com/asset-pipe/asset-pipe-js-writer#readme","_id":"@asset-pipe/js-writer@2.0.1","_npmVersion":"5.6.0","_nodeVersion":"9.5.0","_npmUser":{"name":"digitalsadhu","email":"digitalsadhu@gmail.com"},"dist":{"integrity":"sha512-2uuIQatjFjF0Fv6w0d0ikCpoBYFt2+n7dWNmsmPsUP3SnEa9PiOAIUEps5TGnjs4SRAuzJkNSSNCnmu40pBQTg==","shasum":"6178888d2537de7e5dad22512e9016e0c8c1d73f","tarball":"https://registry.npmjs.org/@asset-pipe/js-writer/-/js-writer-2.0.1.tgz","fileCount":7,"unpackedSize":9830,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCKi7o/Zf7wtPBQOOp3XYSBg+VojsNmDq9Cmim8X5aXKQIhANFt01Bq4o0mo9KY/9C5o/i40FAR/83VBD52j8a+I6A1"}]},"maintainers":[{"name":"digitalsadhu","email":"digitalsadhu@gmail.com"},{"name":"simenb","email":"sbekkhus91@gmail.com"},{"name":"sveisvei","email":"sveinung.rosaker@gmail.com"},{"name":"trygve","email":"post@trygve-lie.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/js-writer_2.0.1_1518187100086_0.5507942460984814"},"_hasShrinkwrap":false},"2.0.2":{"name":"@asset-pipe/js-writer","version":"2.0.2","author":{"name":"Trygve Lie","email":"post@trygve-lie.com"},"description":"Javascript asset feed writer","main":"./lib/writer.js","repository":{"type":"git","url":"git+https://github.com/asset-pipe/asset-pipe-js-writer.git"},"keywords":["javascript","assets"],"contributors":[{"name":"Trygve Lie","email":"post@trygve-lie.com"}],"bugs":{"url":"https://github.com/asset-pipe/asset-pipe-js-writer/issues"},"license":"MIT","dependencies":{"asset-pipe-common":"^1.0.0-beta.6","browserify":"^15.1.0","readable-stream":"^2.3.3"},"devDependencies":{"@commitlint/cli":"^6.0.5","@commitlint/config-conventional":"^6.0.4","JSONStream":"^1.3.2","asset-pipe-test-es5a":"^1.0.0","commitizen":"^2.9.6","cz-conventional-changelog":"^2.1.0","eslint":"^4.16.0","eslint-config-finn":"^3.0.0","eslint-config-finn-prettier":"^3.0.1","eslint-plugin-import":"^2.8.0","husky":"^0.14.3","jest":"^22.1.4","lint-staged":"^6.1.0","prettier":"^1.10.2","semantic-release":"^12.4.1"},"scripts":{"lint":"eslint .","test":"jest --coverage","lint:format":"eslint --fix .","lint:commit":"commitlint --from=HEAD~1","precommit":"lint-staged","cm":"git-cz","semantic-release":"semantic-release"},"files":["lib"],"jest":{"testEnvironment":"node","clearMocks":true,"coverageThreshold":{"global":{"branches":100,"functions":100,"lines":100,"statements":100}}},"prettier":{"singleQuote":true,"trailingComma":"all","tabWidth":4,"overrides":[{"files":"*.json","options":{"tabWidth":2}},{"files":".eslintrc","options":{"parser":"json","tabWidth":2}}]},"lint-staged":{"*.js":["eslint --fix --config ./.eslintrc","git add"],"{*.json,*.md,.eslintrc}":["prettier --write","git add"]},"config":{"commitizen":{"path":"cz-conventional-changelog"}},"commitlint":{"extends":["@commitlint/config-conventional"]},"gitHead":"668c960a93fa104d43a0bb8eda01a79801e91ead","homepage":"https://github.com/asset-pipe/asset-pipe-js-writer#readme","_id":"@asset-pipe/js-writer@2.0.2","_npmVersion":"5.6.0","_nodeVersion":"9.8.0","_npmUser":{"name":"digitalsadhu","email":"digitalsadhu@gmail.com"},"dist":{"integrity":"sha512-dh7Z4a9qkY+aZXhsmX2t/QFwJufabrfGg/4PTIo1VB+Sx01atGYnkvd9lvE2oVdA1MgWycJo1H6TFOVjrh62zQ==","shasum":"e7efb86032760797b8b3d9be9a128a14ce6a0bef","tarball":"https://registry.npmjs.org/@asset-pipe/js-writer/-/js-writer-2.0.2.tgz","fileCount":9,"unpackedSize":10531,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD3Tmf080OBrqf3CDNiHAxQtCMGIrit8TxW0MvHZYDyvgIgT254Znjxe5WC4uwEK8CKqzj54+2ZMwETcsNIXen0SJs="}]},"maintainers":[{"name":"digitalsadhu","email":"digitalsadhu@gmail.com"},{"name":"simenb","email":"sbekkhus91@gmail.com"},{"name":"sveisvei","email":"sveinung.rosaker@gmail.com"},{"name":"trygve","email":"post@trygve-lie.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/js-writer_2.0.2_1521576850875_0.12014300688723933"},"_hasShrinkwrap":false},"2.0.3":{"name":"@asset-pipe/js-writer","version":"2.0.3","author":{"name":"Trygve Lie","email":"post@trygve-lie.com"},"description":"Javascript asset feed writer","main":"./lib/writer.js","repository":{"type":"git","url":"git+https://github.com/asset-pipe/asset-pipe-js-writer.git"},"keywords":["javascript","assets"],"contributors":[{"name":"Trygve Lie","email":"post@trygve-lie.com"}],"bugs":{"url":"https://github.com/asset-pipe/asset-pipe-js-writer/issues"},"license":"MIT","dependencies":{"asset-pipe-common":"^1.0.0","browserify":"^16.2.3","readable-stream":"^3.1.0"},"devDependencies":{"@commitlint/cli":"^7.2.1","@commitlint/config-conventional":"^7.1.2","JSONStream":"^1.3.5","asset-pipe-test-es5a":"^1.0.0","commitizen":"^3.0.5","cz-conventional-changelog":"^2.1.0","eslint":"^5.0.1","eslint-config-finn":"^3.0.1","eslint-config-finn-prettier":"^3.0.2","eslint-plugin-import":"^2.14.0","husky":"^1.3.0","jest":"^23.6.0","lint-staged":"^8.1.0","prettier":"^1.15.3","semantic-release":"^15.1.4"},"scripts":{"lint":"eslint .","test":"jest --coverage","lint:format":"eslint --fix .","lint:commit":"commitlint --from=HEAD~1","precommit":"lint-staged","cm":"git-cz","semantic-release":"semantic-release"},"jest":{"testEnvironment":"node","clearMocks":true,"coverageThreshold":{"global":{"branches":100,"functions":100,"lines":100,"statements":100}}},"prettier":{"singleQuote":true,"trailingComma":"all","tabWidth":4,"overrides":[{"files":"*.json","options":{"tabWidth":2}},{"files":".eslintrc","options":{"parser":"json","tabWidth":2}}]},"lint-staged":{"*.js":["eslint --fix --config ./.eslintrc","git add"],"{*.json,*.md,.eslintrc}":["prettier --write","git add"]},"config":{"commitizen":{"path":"cz-conventional-changelog"}},"commitlint":{"extends":["@commitlint/config-conventional"]},"gitHead":"9fd72a9e48fa8a6266f28e4901ba49c4633feda6","homepage":"https://github.com/asset-pipe/asset-pipe-js-writer#readme","_id":"@asset-pipe/js-writer@2.0.3","_npmVersion":"6.5.0","_nodeVersion":"9.11.2","_npmUser":{"name":"digitalsadhu","email":"digitalsadhu@gmail.com"},"dist":{"integrity":"sha512-/U1n9A0fYzxyBYf1LrnfFvTbQoDogoLSRI+/PH1l18ZE7xnmqHacY3fNSmCg9sLxbSc0m3X2cgbhVMxCu+pscQ==","shasum":"fbf125f4ed5b055399ca02825a56d489ba4a4ebc","tarball":"https://registry.npmjs.org/@asset-pipe/js-writer/-/js-writer-2.0.3.tgz","fileCount":9,"unpackedSize":10523,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcG3XxCRA9TVsSAnZWagAAICEP/AyVShpRWkxvR0Mo9jQw\nBw6qGJkpDzrBGlbvwFJXFQEovo3QV7rTmXxFGDrdoRwkmDgvWQ9iXFRENME7\n04h8dqOC1AdlNHvl4giBWUI6IULXBj/BY9bPm1bLI+mW1aJaQ9lh0GK8TOZn\nZYNyh2cvgDzAcM8N1ytX/IGjYtlY+ysm5N03KuUWG2KVhNROw4g8bVKfilwd\ns/YgM1O682XdbaF8EsRPa4t6vLDeOBDZjwJNoVlhG3Ta+vjtScesmZ53yk0x\n/iKl7pUrW3WByAQ1J9ChIkql72ZmUvD2Er2iK6/IrRHZOss2MWV+964YIg91\n9eMq3vU8l/WKr806ntbmMPOVcDWyfLBTQ7RwkXxN91N41pE9VxNKYbD1t3wL\nMuot8r2gaieK7XWYfdTDg1ukTlptgVaGxcjg5zOoCv4acVDD/8PjzfznJpZL\nS8+XNoRwVXsqlVB648n0Ga3rGJ9cEjudNMxzss07+wlo/DuX4MemlkEvfLn2\nhvomkCLqwskh9akZAStdCRgA1aR2oPzu5FcSrhgPHk66xQUU0MEBSWhGWjMa\nTcTh850GGFI5bI4UyOwMhE+7upt3ZMDpgR5GvncuPZ7CEOBl2BvMIFw9dP6g\njRgzYznUIP2NPNmsZED8e3kx7pFJ3jTcvQrTx0OeTtPOuxPtsSHtcJbTCpzq\n7199\r\n=e+C0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB6zOVAc2X39Lg3/xC247FBqT/BssdVBONFVKkyagQH6AiEA610Vnrze0XYsyzFLuTo76c7n3P84SpsPX9BV6ZThM2w="}]},"maintainers":[{"name":"digitalsadhu","email":"digitalsadhu@gmail.com"},{"name":"simenb","email":"sbekkhus91@gmail.com"},{"name":"sveisvei","email":"sveinung.rosaker@gmail.com"},{"name":"trygve","email":"post@trygve-lie.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/js-writer_2.0.3_1545303536590_0.7222033593575738"},"_hasShrinkwrap":false},"2.0.4":{"name":"@asset-pipe/js-writer","version":"2.0.4","author":{"name":"Trygve Lie","email":"post@trygve-lie.com"},"description":"Javascript asset feed writer","main":"./lib/writer.js","repository":{"type":"git","url":"git+https://github.com/asset-pipe/asset-pipe-js-writer.git"},"keywords":["javascript","assets"],"contributors":[{"name":"Trygve Lie","email":"post@trygve-lie.com"}],"bugs":{"url":"https://github.com/asset-pipe/asset-pipe-js-writer/issues"},"license":"MIT","dependencies":{"asset-pipe-common":"^1.0.0","browserify":"^16.2.3","readable-stream":"^3.1.0"},"devDependencies":{"@commitlint/cli":"^7.2.1","@commitlint/config-conventional":"^7.1.2","JSONStream":"^1.3.5","asset-pipe-test-es5a":"^1.0.0","commitizen":"^3.0.5","cz-conventional-changelog":"^2.1.0","eslint":"^5.0.1","eslint-config-finn":"^3.0.1","eslint-config-finn-prettier":"^3.0.2","eslint-plugin-import":"^2.14.0","husky":"^1.3.0","jest":"^23.6.0","lint-staged":"^8.1.0","prettier":"^1.15.3","semantic-release":"^15.1.4"},"scripts":{"lint":"eslint .","test":"jest --coverage","lint:format":"eslint --fix .","lint:commit":"commitlint --from=HEAD~1","precommit":"lint-staged","cm":"git-cz","semantic-release":"semantic-release"},"jest":{"testEnvironment":"node","clearMocks":true,"coverageThreshold":{"global":{"branches":100,"functions":100,"lines":100,"statements":100}}},"prettier":{"singleQuote":true,"trailingComma":"all","tabWidth":4,"overrides":[{"files":"*.json","options":{"tabWidth":2}},{"files":".eslintrc","options":{"parser":"json","tabWidth":2}}]},"lint-staged":{"*.js":["eslint --fix --config ./.eslintrc","git add"],"{*.json,*.md,.eslintrc}":["prettier --write","git add"]},"config":{"commitizen":{"path":"cz-conventional-changelog"}},"commitlint":{"extends":["@commitlint/config-conventional"]},"gitHead":"11c233586d69a7e85ec43e71ee960e2b68160223","homepage":"https://github.com/asset-pipe/asset-pipe-js-writer#readme","_id":"@asset-pipe/js-writer@2.0.4","_npmVersion":"6.5.0","_nodeVersion":"11.15.0","_npmUser":{"name":"digitalsadhu","email":"digitalsadhu@gmail.com"},"dist":{"integrity":"sha512-dr0v+Mi/f4oMI3CjttTBN7v26yI8Pow/gxYg+O6ciDvG04Tl1sBhWNcxGTFs73zoY8RLgQ2aHig4LTX1IRwgcQ==","shasum":"55eb07dc59c5126416ce8353e5336400083dfe1d","tarball":"https://registry.npmjs.org/@asset-pipe/js-writer/-/js-writer-2.0.4.tgz","fileCount":9,"unpackedSize":10636,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdTCu6CRA9TVsSAnZWagAAlM0P/3pm3xthFxgtickFua+B\nMkewd2lfERisrA7TspHAstSGXBlNY2pT9xPghd3/2Q02VxxBsIqdrJvpE0mo\nbauaSkBSzvvTqQevj6EU3TadSlHdMRXz14aHlyRIsjvi5naDa9gy0RCBfYLQ\nO96GFF296oqAR2+LeschUdfOgFi8IOsCRM2pfGlHke7GqOnOK5DyRd6CcBZB\nI+qAi7yWBZUkOhUKQiy25rOqpekLi5DZw0ONqPvYtEqCZRBZkgyxHXKeXQWG\nl0gashCmiEiY7yQyNq5So+tnQi/6luJyXIjFMVROhnwyhl4BiBuqAZYwRxSc\nh3vcCHYQX4tzgTH2RbGMXGejUeB60UhAJ8aImr49GzlWXyyod3SCUzcuX94v\n00vn8hPPcQKkzp/xtH6RHeLE3aCewZ/nbCCQ+JlkT2bBsZMcIDQFYnyc6cTV\nreN4CuZoc2DKVk5D4X4I137ltSaC0IZBC2FkA/5mX8micfd177728IyI4iHf\niPvAU3NDjVHIj0cBh+XgG06zq40i0L+o7leTKjTAicn/Q1W11Gq+BOn8z8OZ\n0WjAyDOS4qcQw9yKApFGOCAkNmR8EDO80t0uaWlNAviyUmxcapb7sPyJrNaH\nGX27ri0KGw41zrv78XevanPnwWl/JI1KDwZL26UUl6cyTexrXATeOqqmm2IE\n32zT\r\n=/Qap\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDVNTSMyvfBsGMUiFgZJlzsb+i11qJCm5oRIinWt2pWrgIhALoRVwSczXj2mrqoCwVDkPfNO8o0oylWQLadgIXvr2Uw"}]},"maintainers":[{"name":"digitalsadhu","email":"digitalsadhu@gmail.com"},{"name":"simenb","email":"sbekkhus91@gmail.com"},{"name":"sveisvei","email":"sveinung.rosaker@gmail.com"},{"name":"trygve","email":"post@trygve-lie.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/js-writer_2.0.4_1565273018310_0.041008244009049344"},"_hasShrinkwrap":false}},"readme":"# asset-pipe-js-writer\n\n[![Greenkeeper badge](https://badges.greenkeeper.io/asset-pipe/asset-pipe-js-writer.svg)](https://greenkeeper.io/)\n\nThis is an internal module intended for use by other modules in the [asset-pipe project][asset-pipe].\n\nThis module reads a [CommonJS module][commonjs] javascript file entry point and\nresolves all the dependencies into an asset feed. It returns a [Browserify][browserify]\ninstance.\n\nThe output of this module can be passed into the [asset-pipe-js-reader][asset-pipe-js-reader] module\nto build executable javascript bundles for the browser.\n\n## Data format\n\nThe data format we use is called an asset feed and is also the internal data format used in [Browserify][browserify].\n\nWhen Browserify resolves [CommonJS modules][commonjs] each dependency will be read and transformed\ninto an object which looks something like this:\n\n```json\n{\n    \"id\": \"c645cf572a8f5acf8716e4846b408d3b1ca45c58\",\n    \"source\":\n        \"\\\"use strict\\\";module.exports.world=function(){return\\\"world\\\"};\",\n    \"deps\": {},\n    \"file\": \"./assets/js/bar.js\"\n}\n```\n\nWhen you call `.bundle()` you get back a stream on which each such object is emitted. One for each dependency.\n\n## Installation\n\n```bash\n$ npm install @asset-pipe/js-writer\n```\n\n## Usage\n\nRead a [CommonJS module][commonjs] entry point and pipe the feed as JSON to a file on disk:\n\n```js\nconst JSONStream = require('JSONStream');\nconst Writer = require('asset-pipe-js-writer');\nconst fs = require('fs');\n\nconst writer = new Writer('./js/browser.main.js');\nwriter\n    .bundle()\n    .pipe(JSONStream.stringify())\n    .pipe(fs.createWriteStream('./feed/a.json'));\n```\n\n## API\n\nThis module has the following API:\n\n### constructor(files, opts, bundle)\n\nSupported arguments are:\n\n* `files` - Same as `files` in the [Browserify constructor][browserify-opts] (required)\n* `opts` - Same as `opts` in the [Browserify constructor][browserify-opts] with `dedupe` option set to `false` (this cannot be overriden). (optional). default: `{}`\n* `bundle` - `boolean` - If `true` this module will output an executable javascript bundle instead of feed of dependencies. (optional). default: `false`.\n\nReturns a `Browserify` instance.\n\n**Examples**\n\n```js\nconst writer = new Writer('./js/browser.main.js');\n```\n\n```js\nconst writer = new Writer(['./js/browser.main.js']);\n```\n\n```js\nconst writer = new Writer('./js/browser.main.js', { debug: true });\n```\n\n```js\nconst bundle = true;\nconst writer = new Writer('./js/browser.main.js', {}, bundle);\n```\n\n### .bundle()\n\nReturns a stream of data.\nIf the writer was created with `bundle: true` this will be a javascript text bundle.\nOtherwise the stream will be in object mode and each dependency will be emitted from the stream as an object.\n\nReturns a readable stream.\n\n**Example**\n\n```js\nwriter.bundle().pipe(...)\n```\n\n## License\n\nThe MIT License (MIT)\n\nCopyright (c) 2017 - Trygve Lie - post@trygve-lie.com\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n\n[commonjs]: https://nodejs.org/docs/latest/api/modules.html\n[asset-pipe]: https://github.com/asset-pipe\n[browserify]: https://github.com/substack/node-browserify\n[browserify-opts]: https://github.com/substack/node-browserify#browserifyfiles--opts\n[browserify-plugin]: https://github.com/substack/node-browserify#bpluginplugin-opts\n[browserify-transform]: https://github.com/substack/node-browserify#btransformtr-opts\n[asset-pipe-js-reader]: https://github.com/asset-pipe/asset-pipe-js-reader\n","maintainers":[{"email":"post@trygve-lie.com","name":"trygve"},{"email":"digitalsadhu@gmail.com","name":"digitalsadhu"}],"time":{"modified":"2022-04-04T15:51:19.690Z","created":"2017-11-22T15:30:29.953Z","1.0.0":"2017-11-22T15:30:29.953Z","2.0.0":"2018-02-02T15:04:42.605Z","2.0.1":"2018-02-09T14:38:20.773Z","2.0.2":"2018-03-20T20:14:10.939Z","2.0.3":"2018-12-20T10:58:56.728Z","2.0.4":"2019-08-08T14:03:38.443Z"},"homepage":"https://github.com/asset-pipe/asset-pipe-js-writer#readme","keywords":["javascript","assets"],"repository":{"type":"git","url":"git+https://github.com/asset-pipe/asset-pipe-js-writer.git"},"contributors":[{"name":"Trygve Lie","email":"post@trygve-lie.com"}],"author":{"name":"Trygve Lie","email":"post@trygve-lie.com"},"bugs":{"url":"https://github.com/asset-pipe/asset-pipe-js-writer/issues"},"license":"MIT","readmeFilename":"README.md"}