From 89e95b3f143682ed9a006991bacf45c9dcba4818 Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 8 Nov 2018 00:43:05 +0800 Subject: remove node_modules --- node_modules/nanoassert/README.md | 49 --------------------------------------- 1 file changed, 49 deletions(-) delete mode 100644 node_modules/nanoassert/README.md (limited to 'node_modules/nanoassert/README.md') diff --git a/node_modules/nanoassert/README.md b/node_modules/nanoassert/README.md deleted file mode 100644 index 799060a5..00000000 --- a/node_modules/nanoassert/README.md +++ /dev/null @@ -1,49 +0,0 @@ -# `nanoassert` - -> Nanoscale assertion module - -## Usage - -```js -var assert = require('nanoassert') - -assert(a !== b, `${a} !== ${b}`) -``` - -## API - -### `assert(declaration, [message])` -### `assert.ok(declaration, [message])` - -Assert that `declaration` is truthy otherwise throw `Error` with -optional `message`, which defaults to `AssertionError`. -If you want friendlier messages you can use template strings to show the -assertion made like in the example above. - -### `assert.notOk(declaration, [message])` - -Assert that `declaration` is not truthy. - -### `assert.equal(a, b, [message])` - -Assert that `a` is loosely equal to `b`. Uses `==` for the comparison. - -### `assert.notEqual(a, b, [message])` - -Assert that `a` is loosely not equal to `b`. Uses `==` for the comparison. - -## Why - -I like to write public facing code very defensively, but have complaints about -the size incurred by the `assert` module. I only use the top-level `assert` -method anyway, so this should make everyone happy :) - -## Install - -```sh -npm install nanoassert -``` - -## License - -[ISC](LICENSE) -- cgit v1.2.3