Socket
Socket
Sign inDemoInstall

has-value

Package Overview
Dependencies
4
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.3.0 to 0.3.1

4

index.js
/*!
* has-value <https://github.com/jonschlinkert/has-value>
*
* Copyright (c) 2014-2015, Jon Schlinkert.
* Copyright (c) 2014-2016, Jon Schlinkert.
* Licensed under the MIT License.

@@ -14,3 +14,3 @@ */

module.exports = function (obj, prop, noZero) {
module.exports = function(obj, prop, noZero) {
if (isObject(obj)) {

@@ -17,0 +17,0 @@ return hasValues(get(obj, prop), noZero);

{
"name": "has-value",
"version": "0.3.1",
"description": "Returns true if a value exists, false if empty. Works with deeply nested values using object paths.",
"version": "0.3.0",
"homepage": "https://github.com/jonschlinkert/has-value",

@@ -23,8 +23,9 @@ "author": "Jon Schlinkert (https://github.com/jonschlinkert)",

"dependencies": {
"get-value": "^2.0.0",
"has-values": "^0.1.3",
"get-value": "^2.0.3",
"has-values": "^0.1.4",
"isobject": "^2.0.0"
},
"devDependencies": {
"mocha": "*"
"gulp-format-md": "^0.1.7",
"mocha": "^2.4.5"
},

@@ -57,12 +58,26 @@ "keywords": [

"verb": {
"run": true,
"toc": false,
"layout": "default",
"tasks": [
"readme"
],
"plugins": [
"gulp-format-md"
],
"related": {
"list": [
"get-object",
"get-property",
"get-value",
"set-value",
"get-property",
"get-object"
],
"description": ""
"set-value"
]
},
"reflinks": [
"verb"
],
"lint": {
"reflinks": true
}
}
}
}

@@ -1,14 +0,13 @@

# 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://img.shields.io/npm/v/has-value.svg?style=flat)](https://www.npmjs.com/package/has-value) [![NPM downloads](https://img.shields.io/npm/dm/has-value.svg?style=flat)](https://npmjs.org/package/has-value) [![Build Status](https://img.shields.io/travis/jonschlinkert/has-value.svg?style=flat)](https://travis-ci.org/jonschlinkert/has-value)
> Returns true if a value exists, false if empty. Works with deeply nested values using object paths.
- [Install](#install)
- [Related projects](#related-projects)
- [Usage](#usage)
- [isEmpty](#isempty)
- [Contributing](#contributing)
- [Running tests](#running-tests)
- [Author](#author)
- [License](#license)
## Install
Install with [npm](https://www.npmjs.com/):
```sh
$ npm install has-value --save
```
**Works for:**

@@ -24,17 +23,2 @@

## Install
Install with [npm](https://www.npmjs.com/)
```sh
$ npm i has-value --save
```
## Related projects
* [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)
## Usage

@@ -98,2 +82,11 @@

## Related projects
You might also be interested in these projects:
* [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)
## Contributing

@@ -103,2 +96,16 @@

## 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

@@ -109,3 +116,3 @@

```sh
$ npm i -d && npm test
$ npm install -d && npm test
```

@@ -117,12 +124,12 @@

+ [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 © 2014-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-value/blob/master/LICENSE).
***
_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on November 23, 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