Socket
Socket
Sign inDemoInstall

has-value

Package Overview
Dependencies
2
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.2.0 to 0.2.1

36

package.json
{
"name": "has-value",
"description": "Returns true if a value exists, false if empty. Works with deeply nested values using object paths.",
"version": "0.2.0",
"version": "0.2.1",
"homepage": "https://github.com/jonschlinkert/has-value",
"author": {
"name": "Jon Schlinkert",
"url": "https://github.com/jonschlinkert"
},
"repository": {
"type": "git",
"url": "git://github.com/jonschlinkert/has-value.git"
},
"author": "Jon Schlinkert (https://github.com/jonschlinkert)",
"repository": "jonschlinkert/has-value",
"bugs": {
"url": "https://github.com/jonschlinkert/has-value/issues"
},
"license": {
"type": "MIT",
"url": "https://github.com/jonschlinkert/has-value/blob/master/LICENSE"
},
"license": "MIT",
"files": [

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

"dependencies": {
"get-value": "^1.1.1",
"has-values": "^0.1.2"
"get-value": "^2.0.0",
"has-values": "^0.1.3"
},

@@ -64,3 +55,14 @@ "devDependencies": {

"value"
]
}
],
"verb": {
"related": {
"description": "",
"list": [
"get-value",
"set-value",
"get-property",
"get-object"
]
}
}
}

@@ -1,17 +0,6 @@

# has-value [![NPM version](https://badge.fury.io/js/has-value.svg)](http://badge.fury.io/js/has-value) [![Build Status](https://travis-ci.org/jonschlinkert/has-value.svg)](https://travis-ci.org/jonschlinkert/has-value)
# has-value [![NPM version](https://badge.fury.io/js/has-value.svg)](http://badge.fury.io/js/has-value) [![Build Status](https://travis-ci.org/jonschlinkert/has-value.svg)](https://travis-ci.org/jonschlinkert/has-value)
> Returns true if a value exists, false if empty. Works with deeply nested values using object paths.
**Works for:**
- booleans
- functions
- numbers (pass `true` as the last arg to treat zero as a value instead of falsey)
- strings
- nulls
- object
- arrays
<!-- toc -->
- [Install](#install)
- [Related projects](#related-projects)

@@ -25,13 +14,26 @@ - [Usage](#usage)

<!-- tocstop -->
**Works for:**
## Install with [npm](npmjs.org)
* booleans
* functions
* numbers (pass `true` as the last arg to treat zero as a value instead of falsey)
* strings
* nulls
* object
* arrays
```bash
npm i has-value --save
## Install
Install with [npm](https://www.npmjs.com/)
```sh
$ npm i has-value --save
```
## Related projects
{%= related(['get-value', 'set-value', 'get-property', 'get-object']) %}
* [get-object](https://www.npmjs.com/package/get-object): Get a property from an object using dot (object path) notation. | [homepage](https://github.com/jonschlinkert/get-object)
* [get-property](https://www.npmjs.com/package/get-property): Get a nested property or its value from an object using simple ` a.b.c` paths. | [homepage](https://github.com/jonschlinkert/get-property)
* [get-value](https://www.npmjs.com/package/get-value): Use property paths (` a.b.c`) to get a nested value from an object. | [homepage](https://github.com/jonschlinkert/get-value)
* [set-value](https://www.npmjs.com/package/set-value): Create nested values and any intermediaries using dot notation (`'a.b.c'`) paths. | [homepage](https://github.com/jonschlinkert/set-value)

@@ -97,9 +99,11 @@ ## Usage

## Contributing
Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/has-value/issues)
Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/has-value/issues/new).
## Running tests
Install dev dependencies.
```bash
npm i -d && npm test
Install dev dependencies:
```sh
$ npm i -d && npm test
```

@@ -110,12 +114,13 @@

**Jon Schlinkert**
+ [github/jonschlinkert](https://github.com/jonschlinkert)
+ [twitter/jonschlinkert](http://twitter.com/jonschlinkert)
+ [twitter/jonschlinkert](http://twitter.com/jonschlinkert)
## License
Copyright (c) 2014-2015 Jon Schlinkert
Released under the MIT license
Copyright © 2014-2015 Jon Schlinkert
Released under the MIT license.
***
_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on March 25, 2015._
_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on October 30, 2015._
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