brisky-is-empty
Advanced tools
Comparing version 1.0.3 to 1.0.4
{ | ||
"name": "brisky-is-empty", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "Checks if a [vigour-base](https://www.npmjs.com/package/vigour-base) object is empty", | ||
"main": "lib/index.js", | ||
"scripts": { | ||
"test": "NODE_ENV=test node test | tap-difflet && vtest test | tap-difflet && standard", | ||
"test": "node test | tap-difflet && standard", | ||
"cover": "istanbul cover --report none --print detail test/index.js", | ||
"view-cover": "istanbul report html && open ./coverage/index.html", | ||
"watch": "nodemon test | tap-difflet", | ||
"dev": "nodemon test | tap-difflet", | ||
"travis": "npm run cover -s && istanbul report lcov && ((cat coverage/lcov.info | coveralls) || exit 0)" | ||
@@ -31,9 +31,14 @@ }, | ||
], | ||
"dependencies": {}, | ||
"engines": {}, | ||
"dependencies": { | ||
"bubleify": "0.5.1" | ||
}, | ||
"devDependencies": { | ||
"browserify": "^13.1.0", | ||
"bubleify": "^0.5.1", | ||
"istanbul": "^0.4.4", | ||
"standard": "^7.1.2", | ||
"ducktape": "^1.0.1", | ||
"budo": "^9.0.0", | ||
"coveralls": "^2.11.12", | ||
"istanbul": "^0.4.5", | ||
"nodemon": "^1.10.2", | ||
"pre-commit": "^1.1.3", | ||
"standard": "^8.0.0", | ||
"tap-difflet": "0.6.0", | ||
"tape": "^4.6.0", | ||
@@ -40,0 +45,0 @@ "vigour-base": "^3.6.0" |
# brisky-is-empty | ||
Checks if a [vigour-base](https://www.npmjs.com/package/vigour-base) object is empty | ||
- **obj** (*object*) - the object to check for emptiness | ||
- **returns** (*boolean*) empty - `true` if `obj` is considered empty, `false` otherwise | ||
<!-- VDOC.badges travis; standard; npm; coveralls --> | ||
<!-- DON'T EDIT THIS SECTION (including comments), INSTEAD RE-RUN `vdoc` TO UPDATE --> | ||
[![Build Status](https://travis-ci.org/vigour-io/brisky-is-empty.svg?branch=master)](https://travis-ci.org/vigour-io/brisky-is-empty) | ||
@@ -10,19 +11,9 @@ [![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](http://standardjs.com/) | ||
<!-- VDOC END --> | ||
-- | ||
<!-- VDOC.jsdoc isEmpty --> | ||
<!-- DON'T EDIT THIS SECTION (including comments), INSTEAD RE-RUN `vdoc` TO UPDATE --> | ||
#### var empty = isEmpty(obj) | ||
Checks if a [vigour-base](https://www.npmjs.com/package/vigour-base) object is empty | ||
- **obj** (*object*) - the object to check for emptiness | ||
- **returns** (*boolean*) empty - `true` if `obj` is considered empty, `false` otherwise | ||
<!-- VDOC END --> | ||
```javascript | ||
var isEmpty = require('brisky-is-empty') | ||
var Base = require('vigour-base') | ||
isEmpty(new Base({})) // true | ||
isEmpty(new Base({ awesome: true })) // false | ||
const isEmpty = require('brisky-is-empty') | ||
const base = require('brisky-base') | ||
isEmpty(base({})) // true | ||
isEmpty(base({ awesome: true })) // false | ||
``` |
Sorry, the diff of this file is not supported yet
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
4728
1
10
18
+ Addedbubleify@0.5.1
+ Addedacorn@3.3.0(transitive)
+ Addedacorn-jsx@3.0.1(transitive)
+ Addedacorn-object-spread@1.0.0(transitive)
+ Addedansi-regex@2.1.1(transitive)
+ Addedansi-styles@2.2.1(transitive)
+ Addedbuble@0.12.5(transitive)
+ Addedbubleify@0.5.1(transitive)
+ Addedchalk@1.1.3(transitive)
+ Addedescape-string-regexp@1.0.5(transitive)
+ Addedhas-ansi@2.0.0(transitive)
+ Addedmagic-string@0.14.0(transitive)
+ Addedminimist@1.2.8(transitive)
+ Addedobject-assign@4.1.1(transitive)
+ Addedos-homedir@1.0.2(transitive)
+ Addedstrip-ansi@3.0.1(transitive)
+ Addedsupports-color@2.0.0(transitive)
+ Addedvlq@0.2.3(transitive)