{"_id":"tiny-error","_rev":"11-4223a2a607eac9dd7c89f247102a9370","name":"tiny-error","description":"Super-light error objects.","dist-tags":{"latest":"1.0.2"},"versions":{"0.0.0-work-in-progress":{"name":"tiny-error","version":"0.0.0-work-in-progress","description":"Super-light error objects.","dependencies":{},"scripts":{"build":"cd module && babel --out-dir ../ *.js","clean":"git reset && echo '/node_modules/' > .gitignore && git add .gitignore && git stash save --include-untracked --keep-index '`npm run clean` trash can' && git clean --force -d && git reset --hard && echo '\nclean: Uncommitted and ignored files have been moved to git’s stash. To restore them run `git stash pop --quiet; git checkout .gitignore`.'","coveralls":"npm run coverage && cat ./coverage/lcov.info | coveralls","coverage":"isparta cover test.js","develop":"nodangel --ignore node_modules --ignore coverage --exec 'npm run --silent test:lite'","prepublish":"npm run clean && npm run build","test":"jshint . && babel *.js module/*.js --out-dir .es5 && node .es5/test.js | tap-spec","test:lite":"babel-node test.js | tap-spec","view-coverage":"echo 'Generating coverage reports...'; npm run coverage >/dev/null && echo '...done.' && xdg-open ./coverage/lcov-report/index.html >/dev/null"},"devDependencies":{"babel":"5.4.7","coveralls":"2.11.2","isparta":"3.0.3","jshint":"2.8.0","nodangel":"1.3.8","tap-spec":"2.2.2","tape-catch":"1.0.4"},"files":["/*.js","/module/","/test/","/Readme.md","/License.md"],"license":"MIT","keywords":["error","exception","handling","performance"],"contributors":[{"name":"Tomek Wiszniewski","email":"t.wiszniewski@gmail.com"}],"copyright":"© 2015 Studio B12 GmbH (http://studio-b12.de)","repository":{"type":"git","url":"git@github.com:studio-b12/tiny-error.git"},"gitHead":"9215ca359f8c39413361658fa5cb5eeee6ead774","bugs":{"url":"https://github.com/studio-b12/tiny-error/issues"},"homepage":"https://github.com/studio-b12/tiny-error","_id":"tiny-error@0.0.0-work-in-progress","_shasum":"9f266c5553f26476c39dbee6837fa20608d5da1d","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"tomekwi","email":"t.wiszniewski@gmail.com"},"maintainers":[{"name":"tomekwi","email":"t.wiszniewski@gmail.com"}],"dist":{"shasum":"9f266c5553f26476c39dbee6837fa20608d5da1d","tarball":"https://registry.npmjs.org/tiny-error/-/tiny-error-0.0.0-work-in-progress.tgz","integrity":"sha512-LKt4JPZioWbCcYxJk/MifxqBkUwkEAfSQWNHeAN4AN1+n5J1/g6cfZnAZK8ytNsIhzat09qJTedGrDVaB4vk1w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEidLOp0RyXYftj4PvlI1E8kHMYZfA9T8JY5SrjszT3bAiEA+uF0ocK3fHtSO+b3ITGOmmaGbAbvY0EXq1FKDAixR8w="}]}},"0.1.0":{"name":"tiny-error","version":"0.1.0","description":"Super-light error objects.","dependencies":{"101":"^1.0.0","object-assign":"^3.0.0"},"scripts":{"build":"cd module && babel --out-dir ../ *.js","clean":"git reset && echo '/node_modules/' > .gitignore && git add .gitignore && git stash save --include-untracked --keep-index '`npm run clean` trash can' && git clean --force -d && git reset --hard && echo '\nclean: Uncommitted and ignored files have been moved to git’s stash. To restore them run `git stash pop --quiet; git checkout .gitignore`.'","coveralls":"npm run coverage && cat ./coverage/lcov.info | coveralls","coverage":"rm -rf coverage && npm run test:transpile && cd .es5 && istanbul cover test.js && mv coverage ..","develop":"nodangel --ignore node_modules --ignore coverage --exec 'npm run --silent test:lite'","prepublish":"npm run clean && npm run build","test":"jshint . && npm run test:transpile && node .es5/test.js | tap-spec","test:transpile":"babel test.js module/*.js --out-dir .es5","test:lite":"babel-node test.js | tap-spec","view-coverage":"echo 'Generating coverage reports...'; npm run coverage >/dev/null && echo '...done.' && xdg-open ./coverage/lcov-report/index.html >/dev/null"},"devDependencies":{"babel":"5.4.7","coveralls":"2.11.2","istanbul":"0.3.14","jshint":"2.8.0","nodangel":"1.3.8","tap-spec":"2.2.2","tape-catch":"1.0.4"},"files":["/*.js","/module/","/test/","/Readme.md","/License.md"],"license":"MIT","keywords":["error","exception","handling","performance"],"contributors":[{"name":"Tomek Wiszniewski","email":"t.wiszniewski@gmail.com"}],"copyright":"© 2015 Studio B12 GmbH (http://studio-b12.de)","repository":{"type":"git","url":"git@github.com:studio-b12/tiny-error.git"},"gitHead":"a1ca947496cb64a3c0fb99b6d143af49766fde53","bugs":{"url":"https://github.com/studio-b12/tiny-error/issues"},"homepage":"https://github.com/studio-b12/tiny-error","_id":"tiny-error@0.1.0","_shasum":"f26b87403cb51934e3ed2a365c937c3a66248979","_from":".","_npmVersion":"2.7.1","_nodeVersion":"0.12.0","_npmUser":{"name":"tomekwi","email":"t.wiszniewski@gmail.com"},"maintainers":[{"name":"tomekwi","email":"t.wiszniewski@gmail.com"}],"dist":{"shasum":"f26b87403cb51934e3ed2a365c937c3a66248979","tarball":"https://registry.npmjs.org/tiny-error/-/tiny-error-0.1.0.tgz","integrity":"sha512-wyapGmaIlraqz0Qk9vO2OaPskew14H3J+Q9pgPD7gvtD2Hy9WRwo3RGnphEXnHqViZJf+27vUaS+raab9lOTyA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF8eFfrXxymQxEdRAvnO6BoaRrsfci55xE66ESWwlM9IAiEAzKPBo276TPdDgYgykgqeXDf7tIHeSsIlu24Cq6TnO3w="}]}},"0.2.0":{"name":"tiny-error","version":"0.2.0","description":"Super-light error objects.","dependencies":{"101":"^1.0.0","object-assign":"^3.0.0"},"scripts":{"build":"cd module && babel --out-dir ../ *.js","clean":"git reset && echo '/node_modules/' > .gitignore && git add .gitignore && git stash save --include-untracked --keep-index '`npm run clean` trash can' && git clean --force -d && git reset --hard && echo '\nclean: Uncommitted and ignored files have been moved to git’s stash. To restore them run `git stash pop --quiet; git checkout .gitignore`.'","coveralls":"npm run coverage && cat ./coverage/lcov.info | coveralls","coverage":"rm -rf coverage && npm run test:transpile && cd .es5 && istanbul cover test.js && mv coverage ..","develop":"nodangel --ignore node_modules --ignore coverage --exec 'npm run --silent test:lite'","prepublish":"npm run clean && npm run build","test":"jshint . && npm run test:transpile && node .es5/test.js | tap-spec","test:transpile":"babel test.js module/*.js --out-dir .es5","test:lite":"babel-node test.js | tap-spec","view-coverage":"echo 'Generating coverage reports...'; npm run coverage >/dev/null && echo '...done.' && xdg-open ./coverage/lcov-report/index.html >/dev/null"},"devDependencies":{"babel":"5.4.7","coveralls":"2.11.2","istanbul":"0.3.14","jshint":"2.8.0","nodangel":"1.3.8","tap-spec":"2.2.2","tape-catch":"1.0.4"},"files":["/*.js","/module/","/test/","/Readme.md","/License.md"],"license":"MIT","keywords":["error","exception","handling","performance"],"contributors":[{"name":"Tomek Wiszniewski","email":"t.wiszniewski@gmail.com"}],"copyright":"© 2015 Studio B12 GmbH (http://studio-b12.de)","repository":{"type":"git","url":"git@github.com:studio-b12/tiny-error.git"},"gitHead":"3bacb650c83d62f4c0f67f5f3f040983c83c4f6a","bugs":{"url":"https://github.com/studio-b12/tiny-error/issues"},"homepage":"https://github.com/studio-b12/tiny-error","_id":"tiny-error@0.2.0","_shasum":"ed68fd9bf4f3705b2dced9cc46d6e0b2a543a70d","_from":".","_npmVersion":"2.7.1","_nodeVersion":"0.12.0","_npmUser":{"name":"tomekwi","email":"t.wiszniewski@gmail.com"},"maintainers":[{"name":"tomekwi","email":"t.wiszniewski@gmail.com"}],"dist":{"shasum":"ed68fd9bf4f3705b2dced9cc46d6e0b2a543a70d","tarball":"https://registry.npmjs.org/tiny-error/-/tiny-error-0.2.0.tgz","integrity":"sha512-acFo3ZjgIsTRcgVZcj79S5nThOeGxfPlzioOGScIyvikTTz6jw+ZjlHSkeFLXcHnPt/l3LDNXBZFqINy7KRWkw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC1fKwkmG+BayWL6+LWyQjCyV+fPdSLPgnKohqh3SOcVwIhAP28BiZNCiDDZbx9vXQ0rGYSoYhgbni65i0XxbeFwOop"}]}},"0.2.1":{"name":"tiny-error","version":"0.2.1","description":"Super-light error objects.","dependencies":{"101":"^1.0.0","object-assign":"^3.0.0"},"scripts":{"build":"cd module && babel --out-dir ../ *.js","clean":"git reset && echo '/node_modules/' > .gitignore && git add .gitignore && git stash save --include-untracked --keep-index '`npm run clean` trash can' && git clean --force -d && git reset --hard && echo '\nclean: Uncommitted and ignored files have been moved to git’s stash. To restore them run `git stash pop --quiet; git checkout .gitignore`.'","coveralls":"npm run coverage && cat ./coverage/lcov.info | coveralls","coverage":"rm -rf coverage && npm run test:transpile && cd .es5 && istanbul cover test.js && mv coverage ..","develop":"nodangel --ignore node_modules --ignore coverage --exec 'npm run --silent test:lite'","prepublish":"npm run clean && npm run build","test":"jshint . && npm run test:transpile && node .es5/test.js | tap-spec","test:transpile":"babel test.js module/*.js --out-dir .es5","test:lite":"babel-node test.js | tap-spec","view-coverage":"echo 'Generating coverage reports...'; npm run coverage >/dev/null && echo '...done.' && xdg-open ./coverage/lcov-report/index.html >/dev/null"},"devDependencies":{"babel":"5.4.7","coveralls":"2.11.2","istanbul":"0.3.14","jshint":"2.8.0","nodangel":"1.3.8","tap-spec":"2.2.2","tape-catch":"1.0.4"},"files":["/*.js","/module/","/test/","/Readme.md","/License.md"],"license":"MIT","keywords":["error","exception","handling","performance"],"contributors":[{"name":"Tomek Wiszniewski","email":"t.wiszniewski@gmail.com"}],"copyright":"© 2015 Studio B12 GmbH (http://studio-b12.de)","repository":{"type":"git","url":"git@github.com:studio-b12/tiny-error.git"},"gitHead":"296d6c823e27ef621fba8ef95d0aa0eb2cb0a1fa","bugs":{"url":"https://github.com/studio-b12/tiny-error/issues"},"homepage":"https://github.com/studio-b12/tiny-error","_id":"tiny-error@0.2.1","_shasum":"b4bfd2634d91aea6998ac460cea76fa115b042d8","_from":".","_npmVersion":"2.7.1","_nodeVersion":"0.12.0","_npmUser":{"name":"tomekwi","email":"t.wiszniewski@gmail.com"},"maintainers":[{"name":"tomekwi","email":"t.wiszniewski@gmail.com"}],"dist":{"shasum":"b4bfd2634d91aea6998ac460cea76fa115b042d8","tarball":"https://registry.npmjs.org/tiny-error/-/tiny-error-0.2.1.tgz","integrity":"sha512-/lueOcCuxtMX89MBvuM3+VPFo3WFokKLmC0bs3QRounBW9YCeq4Y+zha3a8pVBJUilGMNSWVFwIqjumLCPiw9Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEy1YIR5p17J4rzJaGQdtBNXRtZnLnxekLFyz9Jb5iywAiEAxI4sasO2jyrwXZMy92yS3Q/o5Udt4davBWg1deOLX2U="}]}},"0.2.2":{"name":"tiny-error","version":"0.2.2","description":"Super-light error objects.","dependencies":{"101":"^1.0.0","object-assign":"^3.0.0"},"scripts":{"build":"cd module && babel --out-dir ../ *.js","clean":"git reset && echo '/node_modules/' > .gitignore && git add .gitignore && git stash save --include-untracked --keep-index '`npm run clean` trash can' && git clean --force -d && git reset --hard && echo '\nclean: Uncommitted and ignored files have been moved to git’s stash. To restore them run `git stash pop --quiet; git checkout .gitignore`.'","coveralls":"npm run coverage && cat ./coverage/lcov.info | coveralls","coverage":"rm -rf coverage && npm run test:transpile && cd .es5 && istanbul cover test.js && mv coverage ..","develop":"nodangel --ignore node_modules --ignore coverage --exec 'npm run --silent test:lite'","prepublish":"npm run clean && npm run build","test":"jshint . && npm run test:transpile && node .es5/test.js | tap-spec","test:transpile":"babel test.js module/*.js --out-dir .es5","test:lite":"babel-node test.js | tap-spec","view-coverage":"echo 'Generating coverage reports...'; npm run coverage >/dev/null && echo '...done.' && xdg-open ./coverage/lcov-report/index.html >/dev/null"},"devDependencies":{"babel":"5.4.7","coveralls":"2.11.2","istanbul":"0.3.14","jshint":"2.8.0","nodangel":"1.3.8","tap-spec":"2.2.2","tape-catch":"1.0.4"},"files":["/*.js","/module/","/test/","/Readme.md","/License.md"],"license":"MIT","keywords":["error","errors","exception","handling","performance","light","lightweight"],"contributors":[{"name":"Tomek Wiszniewski","email":"t.wiszniewski@gmail.com"}],"copyright":"© 2015 Studio B12 GmbH (http://studio-b12.de)","repository":{"type":"git","url":"git+ssh://git@github.com/studio-b12/tiny-error.git"},"gitHead":"2a4d34df899ea140905feb65cd31166dc5a6cb00","bugs":{"url":"https://github.com/studio-b12/tiny-error/issues"},"homepage":"https://github.com/studio-b12/tiny-error#readme","_id":"tiny-error@0.2.2","_shasum":"ed20ef75c71f8047751136d5cd277ff4be5c542c","_from":".","_npmVersion":"2.12.1","_nodeVersion":"2.3.4","_npmUser":{"name":"tomekwi","email":"t.wiszniewski@gmail.com"},"dist":{"shasum":"ed20ef75c71f8047751136d5cd277ff4be5c542c","tarball":"https://registry.npmjs.org/tiny-error/-/tiny-error-0.2.2.tgz","integrity":"sha512-I8Jlw3npN1u2tZi/UKWSHddnQFEHBqX6tGgxqardGhEtj8uWE9ID+uxJzrW8DyV8L8eYxlEF8rhMj5VE31mE0w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDYY1X5NJP0qWA74dgkEE1EzFOZOc6lhjveWnz1vh+AnAiEA0JSZ+GBUr/d78FOcUFD6cT1ozbAPbVyy1pTXVQHwxd8="}]},"maintainers":[{"name":"tomekwi","email":"t.wiszniewski@gmail.com"}]},"0.2.3":{"name":"tiny-error","version":"0.2.3","description":"Super-light error objects.","dependencies":{"101":"^1.0.0","object-assign":"^4.0.1"},"scripts":{"build":"cd module && babel --out-dir ../ *.js","clean":"git reset && echo '/node_modules/' > .gitignore && git add .gitignore && git stash save --include-untracked --keep-index '`npm run clean` trash can' && git clean --force -d && git reset --hard && echo '\nclean: Uncommitted and ignored files have been moved to git’s stash. To restore them run `git stash pop --quiet; git checkout .gitignore`.'","coveralls":"npm run coverage && cat ./coverage/lcov.info | coveralls","coverage":"rm -rf coverage && npm run test:transpile && cd .es5 && istanbul cover test.js && mv coverage ..","develop":"nodangel --ignore node_modules --ignore coverage --exec 'npm run --silent test:lite'","prepublish":"npm run clean && npm run build","test":"jshint . && npm run test:transpile && node .es5/test.js | tap-spec","test:transpile":"babel test.js module/*.js --out-dir .es5","test:lite":"babel-node test.js | tap-spec","view-coverage":"echo 'Generating coverage reports...'; npm run coverage >/dev/null && echo '...done.' && xdg-open ./coverage/lcov-report/index.html >/dev/null"},"devDependencies":{"babel":"5.4.7","coveralls":"2.11.2","istanbul":"0.3.14","jshint":"2.8.0","nodangel":"1.3.8","tap-spec":"2.2.2","tape-catch":"1.0.4"},"files":["/*.js","/module/","/test/","/Readme.md","/License.md"],"license":"MIT","keywords":["error","errors","exception","handling","performance","light","lightweight"],"contributors":[{"name":"Tomek Wiszniewski","email":"t.wiszniewski@gmail.com"}],"copyright":"© 2015 Studio B12 GmbH (http://studio-b12.de)","repository":{"type":"git","url":"git+ssh://git@github.com/studio-b12/tiny-error.git"},"gitHead":"229ed588938e24d52c361d83428f416544e5ac0e","bugs":{"url":"https://github.com/studio-b12/tiny-error/issues"},"homepage":"https://github.com/studio-b12/tiny-error#readme","_id":"tiny-error@0.2.3","_shasum":"2876acfe57851b0714313c1535dfc7060a7c09bb","_from":".","_npmVersion":"3.4.0","_nodeVersion":"5.0.0","_npmUser":{"name":"tomekwi","email":"t.wiszniewski@gmail.com"},"dist":{"shasum":"2876acfe57851b0714313c1535dfc7060a7c09bb","tarball":"https://registry.npmjs.org/tiny-error/-/tiny-error-0.2.3.tgz","integrity":"sha512-fC5BhOCCvbWXvwguyo21Nb7pfMvLnR8OlluXqec1daIxE8FZtK/Sgm7uP2al8hZL79GpKxYtnKYL1Sq+LSyloQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCVhmouHCLyQjw0A/SRNZ4+nzGXP4WrZ2QNjY+flERXNAIhAIxQFqWOnvJtAEhm6XqlbEcZA0DpdnPJpGKl+fJMgz24"}]},"maintainers":[{"name":"tomekwi","email":"t.wiszniewski@gmail.com"}]},"1.0.0":{"name":"tiny-error","version":"1.0.0","description":"Super-light error objects.","dependencies":{"101":"^1.0.0","object-assign":"^4.0.1"},"scripts":{"build":"cd module && babel --out-dir ../ *.js","clean":"git reset && echo '/node_modules/' > .gitignore && git add .gitignore && git stash save --include-untracked --keep-index '`npm run clean` trash can' && git clean --force -d && git reset --hard && echo '\nclean: Uncommitted and ignored files have been moved to git’s stash. To restore them run `git stash pop --quiet; git checkout .gitignore`.'","coveralls":"npm run coverage && cat ./coverage/lcov.info | coveralls","coverage":"rm -rf coverage && npm run test:transpile && cd .es5 && istanbul cover test.js && mv coverage ..","develop":"nodangel --ignore node_modules --ignore coverage --exec 'npm run --silent test:lite'","prepublish":"npm run clean && npm run build","test":"jshint . && npm run test:transpile && node .es5/test.js | tap-spec","test:transpile":"babel test.js module/*.js --out-dir .es5","test:lite":"babel-node test.js | tap-spec","view-coverage":"echo 'Generating coverage reports...'; npm run coverage >/dev/null && echo '...done.' && xdg-open ./coverage/lcov-report/index.html >/dev/null"},"devDependencies":{"babel":"5.4.7","coveralls":"2.11.2","istanbul":"0.3.14","jshint":"2.8.0","nodangel":"1.3.8","tap-spec":"2.2.2","tape-catch":"1.0.4"},"files":["/*.js","/module/","/test/","/Readme.md","/License.md"],"license":"MIT","keywords":["error","errors","exception","handling","performance","light","lightweight"],"contributors":[{"name":"Tomek Wiszniewski","email":"t.wiszniewski@gmail.com"}],"copyright":"© 2015 Studio B12 GmbH (http://studio-b12.de)","repository":{"type":"git","url":"git+ssh://git@github.com/studio-b12/tiny-error.git"},"gitHead":"dc0d2f91d7019e86517fa322f5b42af616de3a8e","bugs":{"url":"https://github.com/studio-b12/tiny-error/issues"},"homepage":"https://github.com/studio-b12/tiny-error#readme","_id":"tiny-error@1.0.0","_shasum":"fb7e7c21b1aa6f1c0039fbdecf99021d4ed884a3","_from":".","_npmVersion":"3.4.0","_nodeVersion":"5.0.0","_npmUser":{"name":"tomekwi","email":"t.wiszniewski@gmail.com"},"dist":{"shasum":"fb7e7c21b1aa6f1c0039fbdecf99021d4ed884a3","tarball":"https://registry.npmjs.org/tiny-error/-/tiny-error-1.0.0.tgz","integrity":"sha512-TPe8fDgxYWJjc4c8QZrsLhd8FOtW2cUZ7Lr91QDGgbZRegOta5L24iAVzZ3heza7AZc3IIjYJDJzI31riK64yQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDT/b+gm4c/UwZsUc5I2OXuKfCW5Z/iMsk76m3KiGI+UAiBTMzeyTd9Fkri/oR29f4FBFWd1o1wQ4LpUiu649pwuIQ=="}]},"maintainers":[{"name":"tomekwi","email":"t.wiszniewski@gmail.com"}]},"1.0.1":{"name":"tiny-error","version":"1.0.1","description":"Super-light error objects.","dependencies":{"101":"^1.0.0","object-assign":"^4.0.1"},"scripts":{"build":"cd module && babel --out-dir ../ *.js","clean":"git reset && echo '/node_modules/' > .gitignore && git add .gitignore && git stash save --include-untracked --keep-index '`npm run clean` trash can' && git clean --force -d && git reset --hard && echo '\nclean: Uncommitted and ignored files have been moved to git’s stash. To restore them run `git stash pop --quiet; git checkout .gitignore`.'","coveralls":"npm run coverage && cat ./coverage/lcov.info | coveralls","coverage":"rm -rf coverage && npm run test:transpile && cd .es5 && istanbul cover test.js && mv coverage ..","develop":"nodangel --ignore node_modules --ignore coverage --exec 'npm run --silent test:lite'","prepublish":"npm run clean && npm run build","test":"jshint . && npm run test:transpile && node .es5/test.js | tap-spec","test:transpile":"babel test.js module/*.js --out-dir .es5","test:lite":"babel-node test.js | tap-spec","view-coverage":"echo 'Generating coverage reports...'; npm run coverage >/dev/null && echo '...done.' && xdg-open ./coverage/lcov-report/index.html >/dev/null"},"devDependencies":{"babel":"5.4.7","coveralls":"2.11.2","istanbul":"0.3.14","jshint":"2.8.0","nodangel":"1.3.8","tap-spec":"2.2.2","tape":"^4.2.2","tape-catch":"1.0.4"},"files":["/*.js","/module/","/test/","/Readme.md","/License.md"],"license":"MIT","keywords":["error","errors","exception","handling","performance","light","lightweight"],"contributors":[{"name":"Tomek Wiszniewski","email":"t.wiszniewski@gmail.com"}],"copyright":"© 2015 Studio B12 GmbH (http://studio-b12.de)","repository":{"type":"git","url":"git+ssh://git@github.com/studio-b12/tiny-error.git"},"gitHead":"f1fac09ceaeed84c3d3149ea13f4cd3233564682","bugs":{"url":"https://github.com/studio-b12/tiny-error/issues"},"homepage":"https://github.com/studio-b12/tiny-error#readme","_id":"tiny-error@1.0.1","_shasum":"da7fd4d1ef64f17bbe6d9384170b1c6783bda4d3","_from":".","_npmVersion":"3.4.0","_nodeVersion":"5.0.0","_npmUser":{"name":"tomekwi","email":"t.wiszniewski@gmail.com"},"dist":{"shasum":"da7fd4d1ef64f17bbe6d9384170b1c6783bda4d3","tarball":"https://registry.npmjs.org/tiny-error/-/tiny-error-1.0.1.tgz","integrity":"sha512-AlSOeiCX+NqkquoB+MFqZiteIqZDxxdmPQopoGLOhSvchBgEYwRMju+Efyxaz9yw9J8jeEnEFtCbSva2Tt36Lw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDzxY7bA7FW4PT+48hYsbBMPgzOVt3RFpWxBUfI96eNfgIgMYEbvPBdFf+CZ4JxBoNwsFhtyOrDPzWyweuz6wDpuHI="}]},"maintainers":[{"name":"tomekwi","email":"t.wiszniewski@gmail.com"}]},"1.0.2":{"name":"tiny-error","version":"1.0.2","description":"Super-light error objects.","dependencies":{"101":"^1.0.0","object-assign":"^4.0.1"},"scripts":{"build":"cd module && babel --out-dir ../ *.js","clean":"git reset && echo '/node_modules/' > .gitignore && git add .gitignore && git stash save --include-untracked --keep-index '`npm run clean` trash can' && git clean --force -d && git reset --hard && echo '\nclean: Uncommitted and ignored files have been moved to git’s stash. To restore them run `git stash pop --quiet; git checkout .gitignore`.'","coveralls":"npm run coverage && cat ./coverage/lcov.info | coveralls","coverage":"rm -rf coverage && npm run test:transpile && cd .es5 && istanbul cover test.js && mv coverage ..","develop":"nodangel --ignore node_modules --ignore coverage --exec 'npm run --silent test:lite'","prepublish":"npm run clean && npm run build","test":"jshint . && npm run test:transpile && node .es5/test.js | tap-spec","test:transpile":"babel test.js module/*.js --out-dir .es5","test:lite":"babel-node test.js | tap-spec","view-coverage":"echo 'Generating coverage reports...'; npm run coverage >/dev/null && echo '...done.' && xdg-open ./coverage/lcov-report/index.html >/dev/null"},"devDependencies":{"babel":"5.4.7","coveralls":"2.11.2","istanbul":"0.3.14","jshint":"2.8.0","nodangel":"1.3.8","tap-spec":"2.2.2","tape":"^4.2.2","tape-catch":"1.0.4"},"files":["/*.js","/module/","/test/","/Readme.md","/License.md"],"license":"MIT","keywords":["error","errors","exception","handling","performance","light","lightweight"],"contributors":[{"name":"Tomek Wiszniewski","email":"t.wiszniewski@gmail.com"}],"copyright":"© 2015 Studio B12 GmbH (http://studio-b12.de)","repository":{"type":"git","url":"git+ssh://git@github.com/studio-b12/tiny-error.git"},"gitHead":"3cae946819969324e550d51329d47bf5068224d9","bugs":{"url":"https://github.com/studio-b12/tiny-error/issues"},"homepage":"https://github.com/studio-b12/tiny-error#readme","_id":"tiny-error@1.0.2","_shasum":"73ce84c27f72f66353a40a243bf7f8cf41a8fef9","_from":".","_npmVersion":"3.4.0","_nodeVersion":"5.0.0","_npmUser":{"name":"tomekwi","email":"t.wiszniewski@gmail.com"},"dist":{"shasum":"73ce84c27f72f66353a40a243bf7f8cf41a8fef9","tarball":"https://registry.npmjs.org/tiny-error/-/tiny-error-1.0.2.tgz","integrity":"sha512-iCRo/xSgqgIBAoxDcLDvRI2TInH9vtEKN2tol1dinRlvHNrotur9ueZg8Dp3HqZWQplo4AkkFEoA3+e7BVFPcQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBl5ykUA2l+7OScZCASMnplyjdDwOMR9iKo9607eH+nYAiBH7HdR1TpssGahlIQQAG1JkruwzWNjEwc5z7pcn2XBrg=="}]},"maintainers":[{"name":"tomekwi","email":"t.wiszniewski@gmail.com"}]}},"readme":"[![Coveralls – test coverage\n](https://img.shields.io/coveralls/studio-b12/tiny-error.svg?style=flat-square\n)](https://coveralls.io/r/studio-b12/tiny-error\n) [![Travis – build status\n](https://img.shields.io/travis/studio-b12/tiny-error/master.svg?style=flat-square\n)](https://travis-ci.org/studio-b12/tiny-error\n) [![David – status of dependencies\n](https://img.shields.io/david/studio-b12/tiny-error.svg?style=flat-square\n)](https://david-dm.org/studio-b12/tiny-error\n) [![Code style: airbnb\n](https://img.shields.io/badge/code%20style-airbnb-777777.svg?style=flat-square\n)](https://github.com/airbnb/javascript\n)\n\n\n\ntiny-error\n==========\n\n**Super-light error objects.**  \nInspired by *go*.\n\n<p align=\"center\"><a\n  title=\"Graphic by the great Justin Mezzell\"\n  href=\"http://justinmezzell.tumblr.com/post/66281274442\"\n  >\n  <br/>\n  <br/>\n  <img\n    alt=\"lightweight\"\n    src=\"Readme/Lightweight.gif\"\n    width=\"400\"\n    height=\"300\"\n  />\n  <br/>\n  <br/>\n</a></p>\n\nI’m no expert with *go*, but I have heard three things:\n\n* *go* has no heavy try/catch mechanism. We all know that try/catch in JS is [slowish](https://jsperf.com/try-catch-performance-overhead) – and you can [do well](http://stackoverflow.com/a/3217308/2816199) without it.\n\n* *go* does have a thing called `panic`. You use it when you encounter an error which you absolutely can’t recover from. It just crashes the program and displays a readable message to the developer or user.\n\n* *go* has no [heavy](http://jsperf.com/new-error-vs-custom-error-object) stack traces. That’s mental overhead for the user. If you ask me, I don’t like stack traces with umpty-ump calls to dig through. (If you’ve ever used node streams or RxJS, you know what I mean.) prefer a descriptive overview of what went wrong, why it went wrong, what to do next and a read-up link.\n\nSince *go* programmers like it so, why not try lightweight errors in JavaScript?\n\n\n\n\nInstallation\n------------\n\n```sh\n$ npm install tiny-error\n```\n\n\n\n\nDemo\n----\n\nNative:\n\n```js\nthrow new Error('Something went wrong.');\n//» Error: Something went wrong.\n//»     at repl:1:7\n//»     at REPLServer.self.eval (repl.js:110:21)\n//»     at repl.js:249:20\n//»     at REPLServer.self.eval (repl.js:122:7)\n//»     at Interface.<anonymous> (repl.js:239:12)\n//»     at Interface.emit (events.js:95:17)\n//»     at Interface._onLine (readline.js:203:10)\n//»     at Interface._line (readline.js:532:8)\n//»     at Interface._ttyWrite (readline.js:761:14)\n//»     at ReadStream.onkeypress (readline.js:100:10)\n```\n\n\nTiny:\n\n```js\nthrow tinyError('Something went wrong.');\n//» Error: Something went wrong.\n```\n\nPrefer to stay *tiny*? Then read on.\n\n\n\n\nUsage\n-----\n\n*tiny-error* is a [maker function*](#maker-function). It creates a new object based on `Error.prototype`, but doesn’t invoke the `Error` constructor directly – thus saving us from creating a stack trace.\n\nIt’s a simple idea – so usage is simple:\n\n```js\nconst tinyError = require('tiny-error');\n\ntinyError('Oops!');\n//» { [Error: Oops!] message: 'Oops!' }\n\ntinyError({message: 'Oops!', myErrorCode: 7});\n//» { [Error: Oops!] message: 'Oops!', myErrorCode: 7 }\n\nthrow tinyError('Oops!');\n//» Error: Oops!            (Output depends on how your engine presents errors.)\n```\n\n\nThere is still power behind this simplicity. Just enough to keep it easy to use but still flexible:\n\n```js\nthrow tinyError({\n  prefix: '[my library] ',\n  message: 'Curses! Try once more.',\n});\n//» Error: [my library] Curses! Try once more.\n\nconst myError = tinyError({prefix: '[my library] '});\nthrow myError('Curses! Try once more.');\n//» Error: [my library] Curses! Try once more.\n\nthrow myError('Oh no. Not again!');\n//» Error: [my library] Oh no. Not again!\n```\n\n<a                                                      id=\"maker-function\"></a>\n> &ast;&ensp;*maker function* – a term I coined together for a function that creates an object. Not an instance of a class (that’s a *factory*). Not an instance of a specific class (*constructor*). Just an object. If there is another word for that, great! Tell me in [an issue](https://github.com/studio-b12/tiny-error/issues/new) please.\n\n\n\n\nAPI\n---\n\n\n<h3><pre>\ntinyError(message)\n  → {Error}\n</pre></h3>\n\nA shortcut to `tinyError({message: message})`.\n\n**Parameters:**\n\n* `{String} message`\n\n\n***\n\n\n<h3><pre>\ntinyError(args)\n  → {Function} tinyErrorCurried\n</pre></h3>\n\n<h3><pre>\ntinyError(args)\n  → {Error}\n</pre></h3>\n\nAn error maker.\n\nWe return an `{Error}` if `args` contains a `{String} args.message`. Otherwise we return a [curried][] function. So these are equivalent:\n\n```js\ntinyError({\n  prefix: '[my library] ',\n  myCode: 2,\n  prototype: TypeError.prototype,\n  message: '`something` should be a number.',\n});\n\n\nconst myError = tinyError({prefix: '[my library] '})\nmyError({\n  myCode: 2,\n  prototype: TypeError.prototype,\n  message: '`something` should be a number.',\n});\n\n\nconst argumentError = myError({myCode: 2, prototype: TypeError.prototype});\nargumentError('`something` should be a number.');\n```\n\n\nAll `args` are just copied to the target object – except three special-cased:\n\n\n**Parameters:**\n\n* `{Function} args.prefix`  \n  we’ll prepend it to the `message`\n\n* `{Function} args.suffix`  \n  we’ll append it to the `message`\n\n* `{Function} args.prototype`  \n  will be used as prototype instead of `Error.prototype`\n\n\nKeep in mind that some properties like `message` and `name` will be treated specially by `Error.prototype`.\n\n[curried]:  http://en.wikipedia.org/wiki/Currying\n\n\n\n\nLicense\n-------\n\n[MIT][] © [Studio B12 GmbH][]\n\n[MIT]: ./License.md\n[Studio B12 GmbH]: http://studio-b12.de\n","maintainers":[{"name":"tomekwi","email":"t.wiszniewski@gmail.com"}],"time":{"modified":"2022-06-27T06:58:34.087Z","created":"2015-06-04T15:30:29.756Z","0.0.0-work-in-progress":"2015-06-04T15:30:29.756Z","0.1.0":"2015-06-08T08:07:33.148Z","0.2.0":"2015-06-08T13:44:04.978Z","0.2.1":"2015-06-08T13:47:20.210Z","0.2.2":"2015-08-04T21:48:51.004Z","0.2.3":"2015-11-21T08:41:35.633Z","1.0.0":"2015-11-21T08:43:07.620Z","1.0.1":"2015-11-21T08:45:27.899Z","1.0.2":"2015-11-21T08:59:40.812Z"},"homepage":"https://github.com/studio-b12/tiny-error#readme","keywords":["error","errors","exception","handling","performance","light","lightweight"],"repository":{"type":"git","url":"git+ssh://git@github.com/studio-b12/tiny-error.git"},"contributors":[{"name":"Tomek Wiszniewski","email":"t.wiszniewski@gmail.com"}],"bugs":{"url":"https://github.com/studio-b12/tiny-error/issues"},"license":"MIT","readmeFilename":"Readme.md"}