{"name":"nanoassert","version":"3.1.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":"8f8a22b5ad49931681e74bde2d0081b4a4d28ae4","types":"./index.d.ts","_id":"nanoassert@3.1.0","_nodeVersion":"25.7.0","_npmVersion":"11.11.0","dist":{"integrity":"sha512-pHCA6mU/H4BzVxHSFzfuhb6NJ0des9pPWsnTERnOQ1a1Ft/M15+b8+sNCsHNWgLN+NVr5QaVlwp0IE7NfST+xw==","shasum":"ad4df51d49f0ae9606a4858cd1386c476d0d3c73","tarball":"http://registry-npm.ywwl.com/nanoassert/download/nanoassert-3.1.0.tgz","fileCount":8,"unpackedSize":5305,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIC6AFIrdO1Fxk/qsaSYTlMpob/l6k1ES4I0shkloI6JcAiEAvemFprv5QCIwB5R+pEefDG6oBA/DmGvPxSk5vVcxglU="}],"size":2475,"noattachment":false,"key":"/nanoassert/-/nanoassert-3.1.0.tgz"},"_npmUser":{"name":"emilbayes","email":"github@tixz.dk"},"directories":{},"maintainers":[{"name":"emilbayes","email":"github@tixz.dk"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/nanoassert_3.1.0_1773344582999_0.2001670493401333"},"_hasShrinkwrap":false,"readme":"# `nanoassert`\n\n[![NPM](https://github.com/emilbayes/nanoassert/actions/workflows/npm.yml/badge.svg)](https://github.com/emilbayes/nanoassert/actions/workflows/npm.yml)\n\n> Nanoscale assertion module\n\n## Usage\n\n```js\nconst assert = require('nanoassert')\n\nassert(a !== b, `${a} !== ${b}`)\n```\n\n## API\n\n### `assert(predicate, [message])`\n\nAssert that `predicate` is truthy, otherwise throw `AssertionError` with\noptional `message`. In Javascript runtimes that support `Error.captureStackTrace`, 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## `nanoassert@^3.0.0`\n\nModernise `nanoassert` some, and add the small type definition from `DefinitelyTyped`. Functionally there should be no changes for most users, but the `name` property of the `AssertionError` is no longer set on the prototype, and newer syntax is employed, which might break some downstream modules.\n\nThank you to the folks that created and maintained the original type definitions.\n\n## Install\n\n```sh\nnpm install nanoassert\n```\n\n## License\n\n[ISC](LICENSE)\n","publish_time":1773344583151,"_cnpm_publish_time":1773344583151,"dist-tags":{"latest":"3.1.0"}}