Comparing version 0.1.1 to 0.1.2
{ | ||
"name": "lazy-ass", | ||
"main": "index.js", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"homepage": "https://github.com/bahmutov/lazy-ass", | ||
@@ -6,0 +6,0 @@ "license": "MIT", |
{ | ||
"name": "lazy-ass", | ||
"description": "Lazy assertions without performance penalty", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"author": "Gleb Bahmutov <gleb.bahmutov@gmail.com>", | ||
@@ -6,0 +6,0 @@ "bugs": { |
@@ -29,2 +29,20 @@ # lazy-ass | ||
## Install | ||
Node: `npm install lazy-ass --save` then `var lazyAss = require('lazy-ass');` | ||
Browser: `bower install lazy-ass --save`, makes function available as `window.lazyAss`. | ||
## Notes | ||
You can pass as many arguments to *lazyAss* after the condition. The condition | ||
will be evaluated every time (this is required for any assertion). The rest of arguments | ||
will be concatenated according to rules | ||
* string will be left unchanged. | ||
* function will be called and its output will be concatenated. | ||
* any array or object will be JSON stringified. | ||
There will be single space between the individual parts. | ||
### Small print | ||
@@ -31,0 +49,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15444
97