Socket
Socket
Sign inDemoInstall

has-values

Package Overview
Dependencies
0
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.3 to 0.1.4

47

package.json
{
"name": "has-values",
"version": "0.1.4",
"description": "Returns true if any values exist, false if empty. Works for booleans, functions, numbers, strings, nulls, objects and arrays. ",
"version": "0.1.3",
"homepage": "https://github.com/jonschlinkert/has-values",
"author": {
"name": "Jon Schlinkert",
"url": "https://github.com/jonschlinkert"
},
"repository": {
"type": "git",
"url": "git://github.com/jonschlinkert/has-values.git"
},
"author": "Jon Schlinkert (https://github.com/jonschlinkert)",
"repository": "jonschlinkert/has-values",
"bugs": {
"url": "https://github.com/jonschlinkert/has-values/issues"
},
"license": {
"type": "MIT",
"url": "https://github.com/jonschlinkert/has-values/blob/master/LICENSE"
},
"license": "MIT",
"files": [

@@ -32,4 +23,4 @@ "index.js"

"devDependencies": {
"mocha": "*",
"should": "^4.0.4"
"gulp-format-md": "^0.1.7",
"mocha": "^2.4.5"
},

@@ -60,3 +51,27 @@ "keywords": [

"value"
]
],
"verb": {
"run": true,
"toc": false,
"layout": "default",
"tasks": [
"readme"
],
"plugins": [
"gulp-format-md"
],
"related": {
"list": [
"has-value",
"isobject",
"is-plain-object"
]
},
"reflinks": [
"verb"
],
"lint": {
"reflinks": true
}
}
}

@@ -1,16 +0,11 @@

# has-values [![NPM version](https://badge.fury.io/js/has-values.svg)](http://badge.fury.io/js/has-values) [![Build Status](https://travis-ci.org/jonschlinkert/has-values.svg)](https://travis-ci.org/jonschlinkert/has-values)
# has-values [![NPM version](https://img.shields.io/npm/v/has-values.svg?style=flat)](https://www.npmjs.com/package/has-values) [![NPM downloads](https://img.shields.io/npm/dm/has-values.svg?style=flat)](https://npmjs.org/package/has-values) [![Build Status](https://img.shields.io/travis/jonschlinkert/has-values.svg?style=flat)](https://travis-ci.org/jonschlinkert/has-values)
> Returns true if a value exists, false if empty. Works for booleans, functions, numbers, strings, nulls, objects and arrays. Other libs do this, but I needed one that would optionally _not_ treat zero as empty. Also, this works with booleans and other values that other libs fail to test properly.
> Returns true if any values exist, false if empty. Works for booleans, functions, numbers, strings, nulls, objects and arrays.
## Install with [npm](npmjs.org)
## Install
```bash
npm i has-values --save
```
Install with [npm](https://www.npmjs.com/):
## Running tests
Install dev dependencies.
```bash
npm i -d && npm test
```sh
$ npm install has-values --save
```

@@ -71,15 +66,50 @@

## Related projects
You might also be interested in these projects:
* [has-value](https://www.npmjs.com/package/has-value): Returns true if a value exists, false if empty. Works with deeply nested values using… [more](https://www.npmjs.com/package/has-value) | [homepage](https://github.com/jonschlinkert/has-value)
* [is-plain-object](https://www.npmjs.com/package/is-plain-object): Returns true if an object was created by the `Object` constructor. | [homepage](https://github.com/jonschlinkert/is-plain-object)
* [isobject](https://www.npmjs.com/package/isobject): Returns true if the value is an object and not an array or null. | [homepage](https://github.com/jonschlinkert/isobject)
## Contributing
Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/has-values/issues/new).
## Building docs
Generate readme and API documentation with [verb](https://github.com/verbose/verb):
```sh
$ npm install verb && npm run docs
```
Or, if [verb](https://github.com/verbose/verb) is installed globally:
```sh
$ verb
```
## Running tests
Install dev dependencies:
```sh
$ npm install -d && npm test
```
## Author
**Jon Schlinkert**
+ [github/jonschlinkert](https://github.com/jonschlinkert)
+ [twitter/jonschlinkert](http://twitter.com/jonschlinkert)
* [github/jonschlinkert](https://github.com/jonschlinkert)
* [twitter/jonschlinkert](http://twitter.com/jonschlinkert)
## License
Copyright (c) 2015 Jon Schlinkert
Released under the MIT license
Copyright © 2016, [Jon Schlinkert](https://github.com/jonschlinkert).
Released under the [MIT license](https://github.com/jonschlinkert/has-values/blob/master/LICENSE).
***
_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on March 24, 2015._
_This file was generated by [verb](https://github.com/verbose/verb), v, on March 27, 2016._

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc