{"_id":"nanoassert","_rev":"9-715f4ee4b2587240c2b62ab18f9c6d4e","name":"nanoassert","dist-tags":{"latest":"3.1.0"},"versions":{"1.0.0":{"name":"nanoassert","version":"1.0.0","keywords":["assert","unassert","power-assert","tiny","nano","pico"],"author":{"name":"Emil Bay","email":"github@tixz.dk"},"license":"ISC","_id":"nanoassert@1.0.0","maintainers":[{"name":"emilbayes","email":"github@tixz.dk"}],"homepage":"https://github.com/emilbayes/nanoassert#readme","bugs":{"url":"https://github.com/emilbayes/nanoassert/issues"},"dist":{"shasum":"555a1120bf265e1d33332ef7b5803710d5e20aff","tarball":"https://registry.npmjs.org/nanoassert/-/nanoassert-1.0.0.tgz","integrity":"sha512-gNkL8hXBP0QYvOh8FNHL/WhHYMaRSjivjq3wGOnyIoq6JaCRtghFJT//nEW2Y1C86JcVzagmdQPKaJbe7quA9w==","signatures":[{"sig":"MEQCIHbXxvyzvlIIQ0hJLIgIxk8q4hLKQDVKFIEgZsEyz0KaAiBh/GOD49WGY2q3Tb8jvLpTF+DvCrkCSBD6gW30BYFSsQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"555a1120bf265e1d33332ef7b5803710d5e20aff","gitHead":"abea954406974eafe73c553448b418d0c05e9bb5","scripts":{"test":"tape test"},"_npmUser":{"name":"emilbayes","email":"github@tixz.dk"},"repository":{"url":"git+https://github.com/emilbayes/nanoassert.git","type":"git"},"_npmVersion":"3.10.10","description":"Nanoscale assertion module","directories":{},"_nodeVersion":"6.9.5","dependencies":{},"devDependencies":{"tape":"^4.6.3"},"_npmOperationalInternal":{"tmp":"tmp/nanoassert-1.0.0.tgz_1496944554480_0.8494925319682807","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"nanoassert","version":"1.1.0","keywords":["assert","unassert","power-assert","tiny","nano","pico"],"author":{"name":"Emil Bay","email":"github@tixz.dk"},"license":"ISC","_id":"nanoassert@1.1.0","maintainers":[{"name":"emilbayes","email":"github@tixz.dk"}],"homepage":"https://github.com/emilbayes/nanoassert#readme","bugs":{"url":"https://github.com/emilbayes/nanoassert/issues"},"dist":{"shasum":"4f3152e09540fde28c76f44b19bbcd1d5a42478d","tarball":"https://registry.npmjs.org/nanoassert/-/nanoassert-1.1.0.tgz","integrity":"sha512-C40jQ3NzfkP53NsO8kEOFd79p4b9kDXQMwgiY1z8ZwrDZgUyom0AHwGegF4Dm99L+YoYhuaB0ceerUcXmqr1rQ==","signatures":[{"sig":"MEUCIFNHBkMWEtTDZbDkYi7w4qNJ1r0WugnEksAwFYKhCgq4AiEAvDPYNc3oqxYxZUzbhm4nL68D+RfXjYeFUoJQbeaDVjM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"4f3152e09540fde28c76f44b19bbcd1d5a42478d","gitHead":"c2e2231aa88fb872f1fbd72fba50cadfe6b97431","scripts":{"test":"tape test"},"_npmUser":{"name":"emilbayes","email":"github@tixz.dk"},"repository":{"url":"git+https://github.com/emilbayes/nanoassert.git","type":"git"},"_npmVersion":"3.10.10","description":"Nanoscale assertion module","directories":{},"_nodeVersion":"6.9.5","dependencies":{},"devDependencies":{"tape":"^4.6.3"},"_npmOperationalInternal":{"tmp":"tmp/nanoassert-1.1.0.tgz_1500913693109_0.5007157232612371","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"nanoassert","version":"2.0.0","keywords":["assert","unassert","power-assert","tiny","nano","pico"],"author":{"name":"Emil Bay","email":"github@tixz.dk"},"license":"ISC","_id":"nanoassert@2.0.0","maintainers":[{"name":"emilbayes","email":"github@tixz.dk"}],"homepage":"https://github.com/emilbayes/nanoassert#readme","bugs":{"url":"https://github.com/emilbayes/nanoassert/issues"},"dist":{"shasum":"a05f86de6c7a51618038a620f88878ed1e490c09","tarball":"https://registry.npmjs.org/nanoassert/-/nanoassert-2.0.0.tgz","fileCount":7,"integrity":"sha512-7vO7n28+aYO4J+8w96AzhmU8G+Y/xpPDJz/se19ICsqj/momRbb9mh9ZUtkoJ5X3nTnPdhEJyc0qnM6yAsHBaA==","signatures":[{"sig":"MEUCIB/9E5N0CEY5vQiPXNbTSwhsHmefQ57G7U94vEmG36YbAiEAi2hK9DVPqB/1ehAv+CtmWrhUBjkwq8LeN09+vlzv0tk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5125,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcRb2xCRA9TVsSAnZWagAAodIP/3+PTggOiQdJKr3JLuBO\nCrpNlnT8WnmdpRV2H3NtGzeIGi3I7QqBVxpmSSNu2eyrgAPXeHcQKD9yICXU\nhK9YikHXSRbtlDrBJbE9/zx5Xc4D3svikbuYESm/7hcysBvwWxnJYittSW15\nldxcWwBNQlBaPWt264iyUZSluzp6TkKKhzCxLu3j9MHwdrJc64v5cXoKhAMW\na3744IqNjSltfM0IglTgDCne5e/dc02Na4iaDUW3XMKbSTTTGEdmHxMrMQH9\no5TrA3H0JJV551/jvos+Yn3ENT+BlCIpHSlNeH6a5/9ct+NIcSfiyY7k7oUQ\njSj/5eTsrpVOx9DihYhQSTr57RAg8pdSF2nyA6io+n3yD9POa3cABV8GJ6eL\nW64kuqe1poXl9D8J/5ZHU3rW0zCbH+ilGfGa6whqmAR2msJwW2ZEN0DPLRTQ\nbTuvOYyoIkdqwddGl1wCQLUTi/xPcZ6lYgH7nuEl4dnGI8QT2KTaFcRHLL3S\nNgjQPkrpbg9NzDZ4V0QKPv/FsbY8/ehFelIAtuVfJZxs2G2mXHYVT2NNZyIM\nSZvl3qTc2BE34GIrtVHRI/qIvpmNL1mlR1kRa0gxvFKZCb39jeEIxNU186eH\n/yahwZ+u8vJ9T1AKGinbruCMVyNU7YrZsgULyEa9fNnofu/qTaW+rBIVfLQW\nXU3u\r\n=s+5U\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"237fd5f382f077f0be45954741a935f2c6070660","scripts":{"test":"tape test.js"},"_npmUser":{"name":"emilbayes","email":"github@tixz.dk"},"repository":{"url":"git+https://github.com/emilbayes/nanoassert.git","type":"git"},"_npmVersion":"6.5.0","description":"Nanoscale assertion module","directories":{},"_nodeVersion":"11.7.0","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"tape":"^4.9.1"},"_npmOperationalInternal":{"tmp":"tmp/nanoassert_2.0.0_1548074416634_0.06351652165470112","host":"s3://npm-registry-packages"}},"3.0.0":{"name":"nanoassert","version":"3.0.0","keywords":["assert","unassert","power-assert","tiny","nano","pico"],"author":{"name":"Emil Bay","email":"github@tixz.dk"},"license":"ISC","_id":"nanoassert@3.0.0","maintainers":[{"name":"emilbayes","email":"github@tixz.dk"}],"homepage":"https://github.com/emilbayes/nanoassert#readme","bugs":{"url":"https://github.com/emilbayes/nanoassert/issues"},"dist":{"shasum":"f5b1a86f319d069810b88b8fd5b355b6ec715ae2","tarball":"https://registry.npmjs.org/nanoassert/-/nanoassert-3.0.0.tgz","fileCount":8,"integrity":"sha512-wn2/RngcpiQuxlzwNvUdS9CKf2NCZjleiGzpupnv+nCy7QjvkhPOmRgrAMS5ajjWQ6zPyz5xLfeAu6P598I6bA==","signatures":[{"sig":"MEQCIEhR6UJBYDQIUqhb3pJSsdYyLQQo0AL/V1LQmHQHq8nxAiAZiiZdmNNHpOdBCjwrjG9jFJ7G0sJp67JvxKkBFcDmtw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":5130},"main":"index.js","types":"./index.d.ts","gitHead":"0935c27963b5797c9fe5240082504234309a5daa","scripts":{"test":"tape test.js"},"_npmUser":{"name":"emilbayes","actor":{"name":"emilbayes","type":"user","email":"github@tixz.dk"},"email":"github@tixz.dk"},"repository":{"url":"git+https://github.com/emilbayes/nanoassert.git","type":"git"},"_npmVersion":"11.4.2","description":"Nanoscale assertion module","directories":{},"_nodeVersion":"24.2.0","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"tape":"^4.9.1"},"_npmOperationalInternal":{"tmp":"tmp/nanoassert_3.0.0_1751118235286_0.8366887840062993","host":"s3://npm-registry-packages-npm-production"}},"3.0.1":{"name":"nanoassert","version":"3.0.1","keywords":["assert","unassert","power-assert","tiny","nano","pico"],"author":{"name":"Emil Bay","email":"github@tixz.dk"},"license":"ISC","_id":"nanoassert@3.0.1","maintainers":[{"name":"emilbayes","email":"github@tixz.dk"}],"homepage":"https://github.com/emilbayes/nanoassert#readme","bugs":{"url":"https://github.com/emilbayes/nanoassert/issues"},"dist":{"shasum":"34b237876569d75b2642d10c421082dcee041c91","tarball":"https://registry.npmjs.org/nanoassert/-/nanoassert-3.0.1.tgz","fileCount":8,"integrity":"sha512-IZEsVxDmY1XJj13A6j/6gVutKHq5sDGWZXYSneBEWNmbfOGvSvnRc5ZYxncpXhuOJgdmJQ85u1FxmdcZRse0xA==","signatures":[{"sig":"MEUCIQC0wnzrLOjSe+oXkQaB3Op4PeyGQodZ+Lzkt3voZyS1jwIgXYS105azzVa2l2wkxbmLGYYKhiNhSFVjuSaqq238svI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":5147},"main":"index.js","types":"./index.d.ts","gitHead":"c85b32802188586694b87ceff403a781fbacaedf","scripts":{"test":"tape test.js"},"_npmUser":{"name":"emilbayes","actor":{"name":"emilbayes","type":"user","email":"github@tixz.dk"},"email":"github@tixz.dk"},"repository":{"url":"git+https://github.com/emilbayes/nanoassert.git","type":"git"},"_npmVersion":"11.4.2","description":"Nanoscale assertion module","directories":{},"_nodeVersion":"24.2.0","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"tape":"^4.9.1"},"_npmOperationalInternal":{"tmp":"tmp/nanoassert_3.0.1_1751118793376_0.3587546075606478","host":"s3://npm-registry-packages-npm-production"}},"3.1.0":{"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":"https://registry.npmjs.org/nanoassert/-/nanoassert-3.1.0.tgz","fileCount":8,"unpackedSize":5305,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIC6AFIrdO1Fxk/qsaSYTlMpob/l6k1ES4I0shkloI6JcAiEAvemFprv5QCIwB5R+pEefDG6oBA/DmGvPxSk5vVcxglU="}]},"_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}},"time":{"created":"2017-06-08T17:55:55.470Z","modified":"2026-03-12T19:43:03.538Z","1.0.0":"2017-06-08T17:55:55.470Z","1.1.0":"2017-07-24T16:28:14.381Z","2.0.0":"2019-01-21T12:40:16.742Z","3.0.0":"2025-06-28T13:43:55.485Z","3.0.1":"2025-06-28T13:53:13.546Z","3.1.0":"2026-03-12T19:43:03.151Z"},"bugs":{"url":"https://github.com/emilbayes/nanoassert/issues"},"author":{"name":"Emil Bay","email":"github@tixz.dk"},"license":"ISC","homepage":"https://github.com/emilbayes/nanoassert#readme","keywords":["assert","unassert","power-assert","tiny","nano","pico"],"repository":{"type":"git","url":"git+https://github.com/emilbayes/nanoassert.git"},"description":"Nanoscale assertion module","maintainers":[{"name":"emilbayes","email":"github@tixz.dk"}],"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","readmeFilename":"README.md"}