{"_id":"nanoassert","_rev":"73862","name":"nanoassert","description":"Nanoscale assertion module","dist-tags":{"latest":"2.0.0"},"maintainers":[{"name":"emilbayes","email":"github@tixz.dk"}],"time":{"modified":"2021-06-03T10:24:05.000Z","created":"2017-06-08T17:55:55.470Z","2.0.0":"2019-01-21T12:40:16.742Z","1.1.0":"2017-07-24T16:28:14.381Z","1.0.0":"2017-06-08T17:55:55.470Z"},"users":{},"author":{"name":"Emil Bay","email":"github@tixz.dk"},"repository":{"type":"git","url":"git+https://github.com/emilbayes/nanoassert.git"},"versions":{"2.0.0":{"name":"nanoassert","version":"2.0.0","description":"Nanoscale assertion module","main":"index.js","dependencies":{},"devDependencies":{"tape":"^4.9.1"},"scripts":{"test":"tape test.js"},"repository":{"type":"git","url":"git+https://github.com/emilbayes/nanoassert.git"},"keywords":["assert","unassert","power-assert","tiny","nano","pico"],"author":{"name":"Emil Bay","email":"github@tixz.dk"},"license":"ISC","bugs":{"url":"https://github.com/emilbayes/nanoassert/issues"},"homepage":"https://github.com/emilbayes/nanoassert#readme","gitHead":"237fd5f382f077f0be45954741a935f2c6070660","_id":"nanoassert@2.0.0","_npmVersion":"6.5.0","_nodeVersion":"11.7.0","_npmUser":{"name":"emilbayes","email":"github@tixz.dk"},"dist":{"shasum":"a05f86de6c7a51618038a620f88878ed1e490c09","size":3305,"noattachment":false,"key":"/nanoassert/-/nanoassert-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/nanoassert/download/nanoassert-2.0.0.tgz"},"maintainers":[{"name":"emilbayes","email":"github@tixz.dk"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nanoassert_2.0.0_1548074416634_0.06351652165470112"},"_hasShrinkwrap":false,"publish_time":1548074416742,"_cnpm_publish_time":1548074416742},"1.1.0":{"name":"nanoassert","version":"1.1.0","description":"Nanoscale assertion module","main":"index.js","dependencies":{},"devDependencies":{"tape":"^4.6.3"},"scripts":{"test":"tape test"},"repository":{"type":"git","url":"git+https://github.com/emilbayes/nanoassert.git"},"keywords":["assert","unassert","power-assert","tiny","nano","pico"],"author":{"name":"Emil Bay","email":"github@tixz.dk"},"license":"ISC","bugs":{"url":"https://github.com/emilbayes/nanoassert/issues"},"homepage":"https://github.com/emilbayes/nanoassert#readme","gitHead":"c2e2231aa88fb872f1fbd72fba50cadfe6b97431","_id":"nanoassert@1.1.0","_shasum":"4f3152e09540fde28c76f44b19bbcd1d5a42478d","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.5","_npmUser":{"name":"emilbayes","email":"github@tixz.dk"},"dist":{"shasum":"4f3152e09540fde28c76f44b19bbcd1d5a42478d","size":1800,"noattachment":false,"key":"/nanoassert/-/nanoassert-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/nanoassert/download/nanoassert-1.1.0.tgz"},"maintainers":[{"name":"emilbayes","email":"github@tixz.dk"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nanoassert-1.1.0.tgz_1500913693109_0.5007157232612371"},"directories":{},"publish_time":1500913694381,"_hasShrinkwrap":false,"_cnpm_publish_time":1500913694381},"1.0.0":{"name":"nanoassert","version":"1.0.0","description":"Nanoscale assertion module","main":"index.js","dependencies":{},"devDependencies":{"tape":"^4.6.3"},"scripts":{"test":"tape test"},"repository":{"type":"git","url":"git+https://github.com/emilbayes/nanoassert.git"},"keywords":["assert","unassert","power-assert","tiny","nano","pico"],"author":{"name":"Emil Bay","email":"github@tixz.dk"},"license":"ISC","bugs":{"url":"https://github.com/emilbayes/nanoassert/issues"},"homepage":"https://github.com/emilbayes/nanoassert#readme","gitHead":"abea954406974eafe73c553448b418d0c05e9bb5","_id":"nanoassert@1.0.0","_shasum":"555a1120bf265e1d33332ef7b5803710d5e20aff","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.5","_npmUser":{"name":"emilbayes","email":"github@tixz.dk"},"dist":{"shasum":"555a1120bf265e1d33332ef7b5803710d5e20aff","size":1632,"noattachment":false,"key":"/nanoassert/-/nanoassert-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/nanoassert/download/nanoassert-1.0.0.tgz"},"maintainers":[{"name":"emilbayes","email":"github@tixz.dk"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nanoassert-1.0.0.tgz_1496944554480_0.8494925319682807"},"directories":{},"publish_time":1496944555470,"_hasShrinkwrap":false,"_cnpm_publish_time":1496944555470}},"readme":"# `nanoassert`\n\n[![Build Status](https://travis-ci.org/emilbayes/nanoassert.svg?branch=master)](https://travis-ci.org/emilbayes/nanoassert)\n\n> Nanoscale assertion module\n\n## Usage\n\n```js\nvar assert = require('nanoassert')\n\nassert(a !== b, `${a} !== ${b}`)\n```\n\n## API\n\n### `assert(declaration, [message])`\n\nAssert that `declaration` is truthy otherwise throw `AssertionError` with\noptional `message`. In Javascript runtimes that use v8, you will get a nicer\nstack trace with this error.\nIf you want friendlier messages you can use template strings to show the\nassertion made like in the example above.\n\n## Why\n\nI like to write public facing code very defensively, but have reservations about\nthe size incurred by the `assert` module. I only use the top-level `assert`\nmethod anyway.\n\n## `nanoassert@^1.1.0`\n\nDocs for the previous version, which is used by many modules on npm, can be\n[found here](https://github.com/emilbayes/nanoassert/tree/v1.1.0)\n\n## Install\n\n```sh\nnpm install nanoassert\n```\n\n## License\n\n[ISC](LICENSE)\n","_attachments":{},"homepage":"https://github.com/emilbayes/nanoassert#readme","bugs":{"url":"https://github.com/emilbayes/nanoassert/issues"},"license":"ISC"}