{"_id":"browser-assert","_rev":"3511797","name":"browser-assert","description":"Featherweight assert module","dist-tags":{"latest":"1.2.1"},"maintainers":[{"name":"muji","email":"freeformsystems@gmail.com"},{"name":"tmpfs","email":"muji@tmpfs.org"}],"time":{"modified":"2024-08-27T20:27:20.000Z","created":"2015-03-27T03:04:44.382Z","1.2.1":"2015-08-24T08:26:19.709Z","1.2.0":"2015-08-18T07:40:06.898Z","1.1.1":"2015-08-08T14:17:31.401Z","1.1.0":"2015-08-08T08:20:11.458Z","1.0.1":"2015-03-27T03:04:44.382Z"},"users":{},"author":{"name":"muji","email":"noop@xpm.io"},"repository":{"type":"git","url":"git://github.com/socialally/browser-assert.git"},"versions":{"1.2.1":{"name":"browser-assert","description":"Featherweight assert module","version":"1.2.1","stability":"stable","author":{"name":"muji","email":"noop@xpm.io"},"repository":{"type":"git","url":"git://github.com/socialally/browser-assert.git"},"main":"lib/assert.js","devDependencies":{"browser-sync":"~2.8.2","browserify":"~11.0.1","chai":"~3.2.0","del":"~1.2.0","gulp":"~3.9.0","gulp-eslint":"~1.0.0","gulp-istanbul-report":"0.0.1","gulp-mocha-phantomjs":"~0.8.1","gulp-size":"~1.2.1","gulp-sourcemaps":"~1.5.2","gulp-uglify":"~1.2.0","gulp-util":"~3.0.4","istanbul":"~0.3.6","merge":"~1.2.0","mocha":"~2.2.5","mocha-phantomjs-istanbul":"~0.0.2","require-dir":"~0.3.0","run-sequence":"~1.1.2","vinyl-buffer":"~1.0.0","vinyl-source-stream":"~1.1.0"},"scripts":{"docs":"npm run readme","readme":"mdp --force -v","start":"gulp start","lint":"gulp lint","clean":"gulp clean","spec":"gulp spec","instrument":"istanbul instrument --output instrument lib/","cover":"npm run instrument && gulp cover","test":"gulp test"},"mdp":{"title":"Assert","pedantic":true,"include":"doc/readme","require":"lib","links":"links.md","toc":"Table of Contents","base":"https://github.com/socialally/browser-assert","partial":[{"ref":"stability","format":"> `Stability: %s`"},{"inc":"introduction.md"},{"req":"assert.js","type":"code","language":"javascript"},{"inc":["install.md","developer.md","license.md"]}]},"gitHead":"cdfac0f2df237c04e4c13fdef0da5b20f81cfe1d","bugs":{"url":"https://github.com/socialally/browser-assert/issues"},"homepage":"https://github.com/socialally/browser-assert#readme","_id":"browser-assert@1.2.1","_shasum":"9aaa5a2a8c74685c2ae05bfe46efd606f068c200","_from":".","_npmVersion":"2.11.3","_nodeVersion":"0.12.7","_npmUser":{"name":"muji","email":"freeformsystems@gmail.com"},"maintainers":[{"name":"muji","email":"freeformsystems@gmail.com"},{"name":"tmpfs","email":"muji@tmpfs.org"}],"dist":{"shasum":"9aaa5a2a8c74685c2ae05bfe46efd606f068c200","size":2543,"noattachment":false,"key":"/browser-assert/-/browser-assert-1.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/browser-assert/download/browser-assert-1.2.1.tgz"},"directories":{},"_cnpmcore_publish_time":"2021-12-20T06:31:14.337Z","publish_time":1440404779709,"_cnpm_publish_time":1440404779709},"1.2.0":{"name":"browser-assert","description":"Featherweight assert module","version":"1.2.0","stability":"stable","author":{"name":"muji","email":"noop@xpm.io"},"repository":{"type":"git","url":"git://github.com/socialally/browser-assert.git"},"main":"lib/assert.js","devDependencies":{"browser-sync":"~2.8.2","browserify":"~11.0.1","chai":"~3.2.0","del":"~1.2.0","gulp":"~3.9.0","gulp-eslint":"~1.0.0","gulp-istanbul-report":"0.0.1","gulp-mocha-phantomjs":"~0.8.1","gulp-size":"~1.2.1","gulp-sourcemaps":"~1.5.2","gulp-uglify":"~1.2.0","gulp-util":"~3.0.4","istanbul":"~0.3.6","merge":"~1.2.0","mocha":"~2.2.5","mocha-phantomjs-istanbul":"~0.0.2","require-dir":"~0.3.0","run-sequence":"~1.1.2","vinyl-buffer":"~1.0.0","vinyl-source-stream":"~1.1.0"},"scripts":{"docs":"npm run readme","readme":"mdp --force -v","start":"gulp start","lint":"gulp lint","clean":"gulp clean","spec":"gulp spec","instrument":"istanbul instrument --output instrument lib/","cover":"npm run instrument && gulp cover","test":"gulp test"},"mdp":{"title":"Assert","pedantic":true,"include":"doc/readme","require":"lib","links":"links.md","toc":"Table of Contents","base":"https://github.com/socialally/browser-assert","partial":[{"ref":"stability","format":"> `Stability: %s`"},{"inc":"introduction.md"},{"req":"assert.js","type":"code","language":"javascript"},{"inc":["install.md","developer.md","license.md"]}]},"gitHead":"9e75ff7a61d9de30faed9b59ee100aff69c07f60","bugs":{"url":"https://github.com/socialally/browser-assert/issues"},"homepage":"https://github.com/socialally/browser-assert#readme","_id":"browser-assert@1.2.0","_shasum":"f053e4dc32a231a8fb22a92d0a4289402e820d35","_from":".","_npmVersion":"2.11.2","_nodeVersion":"0.12.6","_npmUser":{"name":"muji","email":"freeformsystems@gmail.com"},"maintainers":[{"name":"muji","email":"freeformsystems@gmail.com"},{"name":"tmpfs","email":"muji@tmpfs.org"}],"dist":{"shasum":"f053e4dc32a231a8fb22a92d0a4289402e820d35","size":2541,"noattachment":false,"key":"/browser-assert/-/browser-assert-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/browser-assert/download/browser-assert-1.2.0.tgz"},"directories":{},"_cnpmcore_publish_time":"2021-12-20T06:31:13.439Z","publish_time":1439883606898,"_cnpm_publish_time":1439883606898},"1.1.1":{"name":"browser-assert","version":"1.1.1","description":"Featherweight assert module","author":{"name":"muji","email":"noop@xpm.io"},"repository":{"type":"git","url":"git://github.com/socialally/browser-assert.git"},"main":"lib/assert.js","devDependencies":{"browser-sync":"~2.8.2","browserify":"~11.0.1","chai":"~3.2.0","del":"~1.2.0","gulp":"~3.9.0","gulp-eslint":"~1.0.0","gulp-istanbul-report":"0.0.1","gulp-mocha-phantomjs":"~0.8.1","gulp-size":"~1.2.1","gulp-sourcemaps":"~1.5.2","gulp-uglify":"~1.2.0","gulp-util":"~3.0.4","istanbul":"~0.3.6","merge":"~1.2.0","mocha":"~2.2.5","mocha-phantomjs-istanbul":"~0.0.2","require-dir":"~0.3.0","run-sequence":"~1.1.2","vinyl-buffer":"~1.0.0","vinyl-source-stream":"~1.1.0"},"scripts":{"docs":"npm run readme","readme":"mdp --force -v","start":"gulp start","lint":"gulp lint","clean":"gulp clean","spec":"gulp spec","instrument":"istanbul instrument --output instrument lib/","cover":"npm run instrument && gulp cover","test":"gulp test"},"mdp":{"title":"Assert","pedantic":true,"include":"doc/readme","require":"lib","links":"links.md","toc":"Table of Contents","base":"https://github.com/socialally/browser-assert","partial":[{"inc":"introduction.md"},{"req":"assert.js","type":"code","language":"javascript"},{"inc":["install.md","developer.md","license.md"]}]},"gitHead":"3ee77f26d11cbc1ceea196b31156844b177aff0c","bugs":{"url":"https://github.com/socialally/browser-assert/issues"},"homepage":"https://github.com/socialally/browser-assert","_id":"browser-assert@1.1.1","_shasum":"a8fe49887a200ff32784a717d400749faece6cd6","_from":".","_npmVersion":"1.4.14","_npmUser":{"name":"muji","email":"freeformsystems@gmail.com"},"maintainers":[{"name":"muji","email":"freeformsystems@gmail.com"},{"name":"tmpfs","email":"muji@tmpfs.org"}],"dist":{"shasum":"a8fe49887a200ff32784a717d400749faece6cd6","size":2496,"noattachment":false,"key":"/browser-assert/-/browser-assert-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/browser-assert/download/browser-assert-1.1.1.tgz"},"directories":{},"_cnpmcore_publish_time":"2021-12-20T06:31:12.560Z","publish_time":1439043451401,"_cnpm_publish_time":1439043451401},"1.1.0":{"name":"browser-assert","version":"1.1.0","description":"Featherweight assert module","author":{"name":"muji","email":"noop@xpm.io"},"repository":{"type":"git","url":"git://github.com/socialally/browser-assert.git"},"main":"lib/assert.js","devDependencies":{"browser-sync":"~2.8.2","browserify":"~11.0.1","chai":"~3.2.0","del":"~1.2.0","gulp":"~3.9.0","gulp-eslint":"~1.0.0","gulp-istanbul-report":"0.0.1","gulp-mocha-phantomjs":"~0.8.1","gulp-size":"~1.2.1","gulp-sourcemaps":"~1.5.2","gulp-uglify":"~1.2.0","gulp-util":"~3.0.4","istanbul":"~0.3.6","merge":"~1.2.0","mocha":"~2.2.5","mocha-phantomjs-istanbul":"~0.0.2","require-dir":"~0.3.0","run-sequence":"~1.1.2","vinyl-buffer":"~1.0.0","vinyl-source-stream":"~1.1.0"},"scripts":{"docs":"npm run readme","readme":"mdp --force -v","start":"gulp start","lint":"gulp lint","clean":"gulp clean","spec":"gulp spec","instrument":"istanbul instrument --output instrument lib/","cover":"npm run instrument && gulp cover","test":"gulp test"},"mdp":{"title":"Assert","pedantic":true,"include":"doc/readme","require":"lib","links":"links.md","toc":"Table of Contents","base":"https://github.com/socialally/browser-assert","partial":[{"inc":"introduction.md"},{"req":"assert.js","type":"code","language":"javascript"},{"inc":["install.md","developer.md","license.md"]}]},"gitHead":"39a2eebb8a7393854ab510be5fa9f6c2348672a8","bugs":{"url":"https://github.com/socialally/browser-assert/issues"},"homepage":"https://github.com/socialally/browser-assert","_id":"browser-assert@1.1.0","_shasum":"ca04438971a02c090851f8d0b367e57e927b5411","_from":".","_npmVersion":"1.4.14","_npmUser":{"name":"muji","email":"freeformsystems@gmail.com"},"maintainers":[{"name":"muji","email":"freeformsystems@gmail.com"},{"name":"tmpfs","email":"muji@tmpfs.org"}],"dist":{"shasum":"ca04438971a02c090851f8d0b367e57e927b5411","size":2494,"noattachment":false,"key":"/browser-assert/-/browser-assert-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/browser-assert/download/browser-assert-1.1.0.tgz"},"directories":{},"_cnpmcore_publish_time":"2021-12-20T06:31:11.678Z","publish_time":1439022011458,"_cnpm_publish_time":1439022011458},"1.0.1":{"name":"browser-assert","version":"1.0.1","description":"Featherweight assert module.","author":{"name":"muji","email":"noop@xpm.io"},"repository":{"type":"git","url":"git://github.com/socialally/browser-assert.git"},"main":"lib/assert.js","dependencies":{},"devDependencies":{"brfs":"~1.4.0","browser-sync":"~2.4.0","browserify":"~9.0.3","chai":"~2.1.0","del":"~1.1.1","gulp":"~3.8.11","gulp-eslint":"~0.5.0","gulp-istanbul":"~0.6.0","gulp-istanbul-report":"0.0.1","gulp-mocha":"~2.0.0","gulp-mocha-phantomjs":"~0.5.3","gulp-size":"~1.2.1","gulp-sourcemaps":"~1.4.0","gulp-uglify":"~1.1.0","gulp-util":"~3.0.4","istanbul":"~0.3.6","merge":"~1.2.0","mocha":"~2.1.0","mocha-phantomjs-istanbul":"0.0.2","require-dir":"~0.1.0","run-sequence":"~1.0.2","vinyl-buffer":"~1.0.0","vinyl-source-stream":"~1.0.0"},"engine":["node >= 0.10.11"],"scripts":{"docs":"npm run readme","readme":"mdp --force -v","start":"gulp start","lint":"gulp lint","clean":"gulp clean","spec":"gulp spec","instrument":"istanbul instrument --output instrument lib/","cover":"npm run instrument && gulp cover","test":"gulp test"},"mdp":{"title":"Assert","pedantic":true,"include":"doc/readme","require":"lib","links":"links.md","toc":"Table of Contents","base":"https://github.com/socialally/browser-assert","partial":[{"inc":"introduction.md"},{"req":"assert.js","type":"code","language":"javascript"},{"inc":["install.md","developer.md","license.md"]}]},"gitHead":"41b15874888c19d406ce2fa604a9617f969ffac0","bugs":{"url":"https://github.com/socialally/browser-assert/issues"},"homepage":"https://github.com/socialally/browser-assert","_id":"browser-assert@1.0.1","_shasum":"11cbbf91b850f2bc26650646ea86b9d9a4471dc2","_from":".","_npmVersion":"1.4.14","_npmUser":{"name":"muji","email":"freeformsystems@gmail.com"},"maintainers":[{"name":"muji","email":"freeformsystems@gmail.com"},{"name":"tmpfs","email":"muji@tmpfs.org"}],"dist":{"shasum":"11cbbf91b850f2bc26650646ea86b9d9a4471dc2","size":2540,"noattachment":false,"key":"/browser-assert/-/browser-assert-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/browser-assert/download/browser-assert-1.0.1.tgz"},"directories":{},"_cnpmcore_publish_time":"2021-12-20T06:31:10.798Z","publish_time":1427425484382,"_cnpm_publish_time":1427425484382}},"readme":"Table of Contents\n=================\n\n* [Assert](#assert)\n  * [Install](#install)\n  * [Developer](#developer)\n    * [Test](#test)\n    * [Start](#start)\n    * [Cover](#cover)\n    * [Lint](#lint)\n    * [Clean](#clean)\n    * [Spec](#spec)\n    * [Instrument](#instrument)\n    * [Readme](#readme)\n  * [License](#license)\n\nAssert\n======\n\n> `Stability: stable`.\n\nFeatherwight `assert` function for the browser and [node](http://nodejs.org) designed to work with [browserify](http://browserify.org).\n\n```javascript\nfunction assert(expr, message) {\n  if(!Boolean(expr)) {\n    throw new Error(message || 'unknown assertion error');\n  }\n}\n```\n\n## Install\n\n```\nnpm i browser-assert --save\n```\n\n## Developer\n\nDeveloper workflow is via [gulp](http://gulpjs.com) but should be executed as `npm` scripts to enable shell execution where necessary.\n\n### Test\n\nRun the headless test suite using [phantomjs](http://phantomjs.org):\n\n```\nnpm test\n```\n\nTo run the tests in a browser context open [test/index.html](https://github.com/socialally/browser-assert/blob/master/test/index.html) or use the server `npm start`.\n\n### Start\n\nServe the test files from a web server with:\n\n```\nnpm start\n```\n\n### Cover\n\nRun the test suite and generate code coverage:\n\n```\nnpm run cover\n```\n\n### Lint\n\nRun the source tree through [eslint](http://eslint.org):\n\n```\nnpm run lint\n```\n\n### Clean\n\nRemove generated files:\n\n```\nnpm run clean\n```\n\n### Spec\n\nCompile the test specifications:\n\n```\nnpm run spec\n```\n\n### Instrument\n\nGenerate instrumented code from `lib` in `instrument`:\n\n```\nnpm run instrument\n```\n\n### Readme\n\nGenerate the project readme file (requires [mdp](https://github.com/freeformsystems/mdp)):\n\n```\nnpm run readme\n```\n\n## License\n\nEverything is [MIT](http://en.wikipedia.org/wiki/MIT_License). Read the [license](https://github.com/socialally/browser-assert/blob/master/LICENSE) if you feel inclined.\n\nGenerated by [mdp(1)](https://github.com/freeformsystems/mdp).\n\n[node]: http://nodejs.org\n[npm]: http://www.npmjs.org\n[gulp]: http://gulpjs.com\n[phantomjs]: http://phantomjs.org\n[browserify]: http://browserify.org\n[eslint]: http://eslint.org\n[mdp]: https://github.com/freeformsystems/mdp\n","_attachments":{},"homepage":"https://github.com/socialally/browser-assert#readme","bugs":{"url":"https://github.com/socialally/browser-assert/issues"}}