| 1 |
{ |
| 2 |
"_id": "has-values", |
| 3 |
"_rev": "9-ca902d5f2f64e49c12d883f49c12d9d1", |
| 4 |
"name": "has-values", |
| 5 |
"description": "Returns true if any values exist, false if empty. Works for booleans, functions, numbers, strings, nulls, objects and arrays. ", |
| 6 |
"dist-tags": { |
| 7 |
"latest": "2.0.1" |
| 8 |
}, |
| 9 |
"versions": { |
| 10 |
"0.1.1": { |
| 11 |
"name": "has-values", |
| 12 |
"description": "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 valu", |
| 13 |
"version": "0.1.1", |
| 14 |
"homepage": "https://github.com/jonschlinkert/has-values", |
| 15 |
"author": { |
| 16 |
"name": "Jon Schlinkert", |
| 17 |
"url": "https://github.com/jonschlinkert" |
| 18 |
}, |
| 19 |
"repository": { |
| 20 |
"type": "git", |
| 21 |
"url": "git://github.com/jonschlinkert/has-values.git" |
| 22 |
}, |
| 23 |
"bugs": { |
| 24 |
"url": "https://github.com/jonschlinkert/has-values/issues" |
| 25 |
}, |
| 26 |
"license": { |
| 27 |
"type": "MIT", |
| 28 |
"url": "https://github.com/jonschlinkert/has-values/blob/master/LICENSE" |
| 29 |
}, |
| 30 |
"files": [ |
| 31 |
"index.js" |
| 32 |
], |
| 33 |
"main": "index.js", |
| 34 |
"engines": { |
| 35 |
"node": ">=0.10.0" |
| 36 |
}, |
| 37 |
"scripts": { |
| 38 |
"test": "mocha" |
| 39 |
}, |
| 40 |
"devDependencies": { |
| 41 |
"mocha": "*", |
| 42 |
"should": "^4.0.4" |
| 43 |
}, |
| 44 |
"keywords": [ |
| 45 |
"array", |
| 46 |
"boolean", |
| 47 |
"empty", |
| 48 |
"find", |
| 49 |
"function", |
| 50 |
"has", |
| 51 |
"hasOwn", |
| 52 |
"javascript", |
| 53 |
"js", |
| 54 |
"key", |
| 55 |
"keys", |
| 56 |
"node.js", |
| 57 |
"null", |
| 58 |
"number", |
| 59 |
"object", |
| 60 |
"properties", |
| 61 |
"property", |
| 62 |
"string", |
| 63 |
"type", |
| 64 |
"util", |
| 65 |
"utilities", |
| 66 |
"utility", |
| 67 |
"value" |
| 68 |
], |
| 69 |
"gitHead": "9e6e72d2d2d41c67131051eaa5c940d67f5b965f", |
| 70 |
"_id": "[email protected]", |
| 71 |
"_shasum": "af131afe61081fa8bcefecc608e3bcc8e556619f", |
| 72 |
"_from": ".", |
| 73 |
"_npmVersion": "2.7.1", |
| 74 |
"_nodeVersion": "1.6.2", |
| 75 |
"_npmUser": { |
| 76 |
"name": "jonschlinkert", |
| 77 |
"email": "[email protected]" |
| 78 |
}, |
| 79 |
"maintainers": [ |
| 80 |
{ |
| 81 |
"name": "jonschlinkert", |
| 82 |
"email": "[email protected]" |
| 83 |
} |
| 84 |
], |
| 85 |
"dist": { |
| 86 |
"shasum": "af131afe61081fa8bcefecc608e3bcc8e556619f", |
| 87 |
"tarball": "https://registry.npmjs.org/has-values/-/has-values-0.1.1.tgz" |
| 88 |
}, |
| 89 |
"directories": {} |
| 90 |
}, |
| 91 |
"0.1.2": { |
| 92 |
"name": "has-values", |
| 93 |
"description": "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 valu", |
| 94 |
"version": "0.1.2", |
| 95 |
"homepage": "https://github.com/jonschlinkert/has-values", |
| 96 |
"author": { |
| 97 |
"name": "Jon Schlinkert", |
| 98 |
"url": "https://github.com/jonschlinkert" |
| 99 |
}, |
| 100 |
"repository": { |
| 101 |
"type": "git", |
| 102 |
"url": "git://github.com/jonschlinkert/has-values.git" |
| 103 |
}, |
| 104 |
"bugs": { |
| 105 |
"url": "https://github.com/jonschlinkert/has-values/issues" |
| 106 |
}, |
| 107 |
"license": { |
| 108 |
"type": "MIT", |
| 109 |
"url": "https://github.com/jonschlinkert/has-values/blob/master/LICENSE" |
| 110 |
}, |
| 111 |
"files": [ |
| 112 |
"index.js" |
| 113 |
], |
| 114 |
"main": "index.js", |
| 115 |
"engines": { |
| 116 |
"node": ">=0.10.0" |
| 117 |
}, |
| 118 |
"scripts": { |
| 119 |
"test": "mocha" |
| 120 |
}, |
| 121 |
"devDependencies": { |
| 122 |
"mocha": "*", |
| 123 |
"should": "^4.0.4" |
| 124 |
}, |
| 125 |
"keywords": [ |
| 126 |
"array", |
| 127 |
"boolean", |
| 128 |
"empty", |
| 129 |
"find", |
| 130 |
"function", |
| 131 |
"has", |
| 132 |
"hasOwn", |
| 133 |
"javascript", |
| 134 |
"js", |
| 135 |
"key", |
| 136 |
"keys", |
| 137 |
"node.js", |
| 138 |
"null", |
| 139 |
"number", |
| 140 |
"object", |
| 141 |
"properties", |
| 142 |
"property", |
| 143 |
"string", |
| 144 |
"type", |
| 145 |
"util", |
| 146 |
"utilities", |
| 147 |
"utility", |
| 148 |
"value" |
| 149 |
], |
| 150 |
"gitHead": "9e6e72d2d2d41c67131051eaa5c940d67f5b965f", |
| 151 |
"_id": "[email protected]", |
| 152 |
"_shasum": "804a721f892a31ee86ae118109fdacaafae6bcf3", |
| 153 |
"_from": ".", |
| 154 |
"_npmVersion": "2.7.1", |
| 155 |
"_nodeVersion": "1.6.2", |
| 156 |
"_npmUser": { |
| 157 |
"name": "jonschlinkert", |
| 158 |
"email": "[email protected]" |
| 159 |
}, |
| 160 |
"maintainers": [ |
| 161 |
{ |
| 162 |
"name": "jonschlinkert", |
| 163 |
"email": "[email protected]" |
| 164 |
} |
| 165 |
], |
| 166 |
"dist": { |
| 167 |
"shasum": "804a721f892a31ee86ae118109fdacaafae6bcf3", |
| 168 |
"tarball": "https://registry.npmjs.org/has-values/-/has-values-0.1.2.tgz" |
| 169 |
}, |
| 170 |
"directories": {} |
| 171 |
}, |
| 172 |
"0.1.3": { |
| 173 |
"name": "has-values", |
| 174 |
"description": "Returns true if any values exist, false if empty. Works for booleans, functions, numbers, strings, nulls, objects and arrays. ", |
| 175 |
"version": "0.1.3", |
| 176 |
"homepage": "https://github.com/jonschlinkert/has-values", |
| 177 |
"author": { |
| 178 |
"name": "Jon Schlinkert", |
| 179 |
"url": "https://github.com/jonschlinkert" |
| 180 |
}, |
| 181 |
"repository": { |
| 182 |
"type": "git", |
| 183 |
"url": "git://github.com/jonschlinkert/has-values.git" |
| 184 |
}, |
| 185 |
"bugs": { |
| 186 |
"url": "https://github.com/jonschlinkert/has-values/issues" |
| 187 |
}, |
| 188 |
"license": { |
| 189 |
"type": "MIT", |
| 190 |
"url": "https://github.com/jonschlinkert/has-values/blob/master/LICENSE" |
| 191 |
}, |
| 192 |
"files": [ |
| 193 |
"index.js" |
| 194 |
], |
| 195 |
"main": "index.js", |
| 196 |
"engines": { |
| 197 |
"node": ">=0.10.0" |
| 198 |
}, |
| 199 |
"scripts": { |
| 200 |
"test": "mocha" |
| 201 |
}, |
| 202 |
"devDependencies": { |
| 203 |
"mocha": "*", |
| 204 |
"should": "^4.0.4" |
| 205 |
}, |
| 206 |
"keywords": [ |
| 207 |
"array", |
| 208 |
"boolean", |
| 209 |
"empty", |
| 210 |
"find", |
| 211 |
"function", |
| 212 |
"has", |
| 213 |
"hasOwn", |
| 214 |
"javascript", |
| 215 |
"js", |
| 216 |
"key", |
| 217 |
"keys", |
| 218 |
"node.js", |
| 219 |
"null", |
| 220 |
"number", |
| 221 |
"object", |
| 222 |
"properties", |
| 223 |
"property", |
| 224 |
"string", |
| 225 |
"type", |
| 226 |
"util", |
| 227 |
"utilities", |
| 228 |
"utility", |
| 229 |
"value" |
| 230 |
], |
| 231 |
"gitHead": "d47866d2a5e7af8803bf0af69f71b161eaba50b4", |
| 232 |
"_id": "[email protected]", |
| 233 |
"_shasum": "f0fb706128d3516bc8713cd14aaf2370598ee797", |
| 234 |
"_from": ".", |
| 235 |
"_npmVersion": "2.5.1", |
| 236 |
"_nodeVersion": "0.12.0", |
| 237 |
"_npmUser": { |
| 238 |
"name": "jonschlinkert", |
| 239 |
"email": "[email protected]" |
| 240 |
}, |
| 241 |
"maintainers": [ |
| 242 |
{ |
| 243 |
"name": "jonschlinkert", |
| 244 |
"email": "[email protected]" |
| 245 |
} |
| 246 |
], |
| 247 |
"dist": { |
| 248 |
"shasum": "f0fb706128d3516bc8713cd14aaf2370598ee797", |
| 249 |
"tarball": "https://registry.npmjs.org/has-values/-/has-values-0.1.3.tgz" |
| 250 |
}, |
| 251 |
"directories": {} |
| 252 |
}, |
| 253 |
"0.1.4": { |
| 254 |
"name": "has-values", |
| 255 |
"version": "0.1.4", |
| 256 |
"description": "Returns true if any values exist, false if empty. Works for booleans, functions, numbers, strings, nulls, objects and arrays. ", |
| 257 |
"homepage": "https://github.com/jonschlinkert/has-values", |
| 258 |
"author": { |
| 259 |
"name": "Jon Schlinkert", |
| 260 |
"url": "https://github.com/jonschlinkert" |
| 261 |
}, |
| 262 |
"repository": { |
| 263 |
"type": "git", |
| 264 |
"url": "git+https://github.com/jonschlinkert/has-values.git" |
| 265 |
}, |
| 266 |
"bugs": { |
| 267 |
"url": "https://github.com/jonschlinkert/has-values/issues" |
| 268 |
}, |
| 269 |
"license": "MIT", |
| 270 |
"files": [ |
| 271 |
"index.js" |
| 272 |
], |
| 273 |
"main": "index.js", |
| 274 |
"engines": { |
| 275 |
"node": ">=0.10.0" |
| 276 |
}, |
| 277 |
"scripts": { |
| 278 |
"test": "mocha" |
| 279 |
}, |
| 280 |
"devDependencies": { |
| 281 |
"gulp-format-md": "^0.1.7", |
| 282 |
"mocha": "^2.4.5" |
| 283 |
}, |
| 284 |
"keywords": [ |
| 285 |
"array", |
| 286 |
"boolean", |
| 287 |
"empty", |
| 288 |
"find", |
| 289 |
"function", |
| 290 |
"has", |
| 291 |
"hasOwn", |
| 292 |
"javascript", |
| 293 |
"js", |
| 294 |
"key", |
| 295 |
"keys", |
| 296 |
"node.js", |
| 297 |
"null", |
| 298 |
"number", |
| 299 |
"object", |
| 300 |
"properties", |
| 301 |
"property", |
| 302 |
"string", |
| 303 |
"type", |
| 304 |
"util", |
| 305 |
"utilities", |
| 306 |
"utility", |
| 307 |
"value" |
| 308 |
], |
| 309 |
"verb": { |
| 310 |
"run": true, |
| 311 |
"toc": false, |
| 312 |
"layout": "default", |
| 313 |
"tasks": [ |
| 314 |
"readme" |
| 315 |
], |
| 316 |
"plugins": [ |
| 317 |
"gulp-format-md" |
| 318 |
], |
| 319 |
"related": { |
| 320 |
"list": [ |
| 321 |
"has-value", |
| 322 |
"isobject", |
| 323 |
"is-plain-object" |
| 324 |
] |
| 325 |
}, |
| 326 |
"reflinks": [ |
| 327 |
"verb" |
| 328 |
], |
| 329 |
"lint": { |
| 330 |
"reflinks": true |
| 331 |
} |
| 332 |
}, |
| 333 |
"gitHead": "199a3eacd663b4ae4b00aef5ef5541aa2c7c8089", |
| 334 |
"_id": "[email protected]", |
| 335 |
"_shasum": "6d61de95d91dfca9b9a02089ad384bff8f62b771", |
| 336 |
"_from": ".", |
| 337 |
"_npmVersion": "3.6.0", |
| 338 |
"_nodeVersion": "5.5.0", |
| 339 |
"_npmUser": { |
| 340 |
"name": "jonschlinkert", |
| 341 |
"email": "[email protected]" |
| 342 |
}, |
| 343 |
"maintainers": [ |
| 344 |
{ |
| 345 |
"name": "jonschlinkert", |
| 346 |
"email": "[email protected]" |
| 347 |
} |
| 348 |
], |
| 349 |
"dist": { |
| 350 |
"shasum": "6d61de95d91dfca9b9a02089ad384bff8f62b771", |
| 351 |
"tarball": "https://registry.npmjs.org/has-values/-/has-values-0.1.4.tgz" |
| 352 |
}, |
| 353 |
"_npmOperationalInternal": { |
| 354 |
"host": "packages-16-east.internal.npmjs.com", |
| 355 |
"tmp": "tmp/has-values-0.1.4.tgz_1459080711641_0.050919414730742574" |
| 356 |
}, |
| 357 |
"directories": {} |
| 358 |
}, |
| 359 |
"1.0.0": { |
| 360 |
"name": "has-values", |
| 361 |
"description": "Returns true if any values exist, false if empty. Works for booleans, functions, numbers, strings, nulls, objects and arrays. ", |
| 362 |
"version": "1.0.0", |
| 363 |
"homepage": "https://github.com/jonschlinkert/has-values", |
| 364 |
"author": { |
| 365 |
"name": "Jon Schlinkert", |
| 366 |
"url": "https://github.com/jonschlinkert" |
| 367 |
}, |
| 368 |
"repository": { |
| 369 |
"type": "git", |
| 370 |
"url": "git+https://github.com/jonschlinkert/has-values.git" |
| 371 |
}, |
| 372 |
"bugs": { |
| 373 |
"url": "https://github.com/jonschlinkert/has-values/issues" |
| 374 |
}, |
| 375 |
"license": "MIT", |
| 376 |
"files": [ |
| 377 |
"index.js" |
| 378 |
], |
| 379 |
"main": "index.js", |
| 380 |
"engines": { |
| 381 |
"node": ">=0.10.0" |
| 382 |
}, |
| 383 |
"scripts": { |
| 384 |
"test": "mocha" |
| 385 |
}, |
| 386 |
"dependencies": { |
| 387 |
"is-number": "^3.0.0", |
| 388 |
"kind-of": "^4.0.0" |
| 389 |
}, |
| 390 |
"devDependencies": { |
| 391 |
"gulp-format-md": "^0.1.12", |
| 392 |
"mocha": "^3.4.1" |
| 393 |
}, |
| 394 |
"keywords": [ |
| 395 |
"array", |
| 396 |
"boolean", |
| 397 |
"empty", |
| 398 |
"find", |
| 399 |
"function", |
| 400 |
"has", |
| 401 |
"hasOwn", |
| 402 |
"javascript", |
| 403 |
"js", |
| 404 |
"key", |
| 405 |
"keys", |
| 406 |
"node.js", |
| 407 |
"null", |
| 408 |
"number", |
| 409 |
"object", |
| 410 |
"properties", |
| 411 |
"property", |
| 412 |
"string", |
| 413 |
"type", |
| 414 |
"util", |
| 415 |
"utilities", |
| 416 |
"utility", |
| 417 |
"value", |
| 418 |
"values" |
| 419 |
], |
| 420 |
"verb": { |
| 421 |
"run": true, |
| 422 |
"toc": false, |
| 423 |
"layout": "default", |
| 424 |
"tasks": [ |
| 425 |
"readme" |
| 426 |
], |
| 427 |
"plugins": [ |
| 428 |
"gulp-format-md" |
| 429 |
], |
| 430 |
"related": { |
| 431 |
"list": [ |
| 432 |
"has-value", |
| 433 |
"kind-of", |
| 434 |
"is-number", |
| 435 |
"is-plain-object", |
| 436 |
"isobject" |
| 437 |
] |
| 438 |
}, |
| 439 |
"reflinks": [ |
| 440 |
"verb" |
| 441 |
], |
| 442 |
"lint": { |
| 443 |
"reflinks": true |
| 444 |
} |
| 445 |
}, |
| 446 |
"gitHead": "fead695044aafcfb337c7125af5479c7eaf1c92c", |
| 447 |
"_id": "[email protected]", |
| 448 |
"_shasum": "95b0b63fec2146619a6fe57fe75628d5a39efe4f", |
| 449 |
"_from": ".", |
| 450 |
"_npmVersion": "4.6.1", |
| 451 |
"_nodeVersion": "7.7.3", |
| 452 |
"_npmUser": { |
| 453 |
"name": "jonschlinkert", |
| 454 |
"email": "[email protected]" |
| 455 |
}, |
| 456 |
"maintainers": [ |
| 457 |
{ |
| 458 |
"name": "jonschlinkert", |
| 459 |
"email": "[email protected]" |
| 460 |
} |
| 461 |
], |
| 462 |
"dist": { |
| 463 |
"shasum": "95b0b63fec2146619a6fe57fe75628d5a39efe4f", |
| 464 |
"tarball": "https://registry.npmjs.org/has-values/-/has-values-1.0.0.tgz" |
| 465 |
}, |
| 466 |
"_npmOperationalInternal": { |
| 467 |
"host": "s3://npm-registry-packages", |
| 468 |
"tmp": "tmp/has-values-1.0.0.tgz_1495219418678_0.2592258816584945" |
| 469 |
}, |
| 470 |
"directories": {} |
| 471 |
}, |
| 472 |
"2.0.0": { |
| 473 |
"name": "has-values", |
| 474 |
"description": "Returns true if any values exist, false if empty. Works for booleans, functions, numbers, strings, nulls, objects and arrays. ", |
| 475 |
"version": "2.0.0", |
| 476 |
"homepage": "https://github.com/jonschlinkert/has-values", |
| 477 |
"author": { |
| 478 |
"name": "Jon Schlinkert", |
| 479 |
"url": "https://github.com/jonschlinkert" |
| 480 |
}, |
| 481 |
"repository": { |
| 482 |
"type": "git", |
| 483 |
"url": "git+https://github.com/jonschlinkert/has-values.git" |
| 484 |
}, |
| 485 |
"bugs": { |
| 486 |
"url": "https://github.com/jonschlinkert/has-values/issues" |
| 487 |
}, |
| 488 |
"license": "MIT", |
| 489 |
"files": [ |
| 490 |
"index.js" |
| 491 |
], |
| 492 |
"main": "index.js", |
| 493 |
"engines": { |
| 494 |
"node": ">=6" |
| 495 |
}, |
| 496 |
"scripts": { |
| 497 |
"test": "mocha" |
| 498 |
}, |
| 499 |
"dependencies": { |
| 500 |
"kind-of": "^6.0.2" |
| 501 |
}, |
| 502 |
"devDependencies": { |
| 503 |
"gulp-format-md": "^1.0.0", |
| 504 |
"mocha": "^3.5.3" |
| 505 |
}, |
| 506 |
"keywords": [ |
| 507 |
"array", |
| 508 |
"boolean", |
| 509 |
"empty", |
| 510 |
"find", |
| 511 |
"function", |
| 512 |
"has", |
| 513 |
"hasOwn", |
| 514 |
"javascript", |
| 515 |
"js", |
| 516 |
"key", |
| 517 |
"keys", |
| 518 |
"node.js", |
| 519 |
"null", |
| 520 |
"number", |
| 521 |
"object", |
| 522 |
"properties", |
| 523 |
"property", |
| 524 |
"string", |
| 525 |
"type", |
| 526 |
"util", |
| 527 |
"utilities", |
| 528 |
"utility", |
| 529 |
"value", |
| 530 |
"values" |
| 531 |
], |
| 532 |
"verb": { |
| 533 |
"run": true, |
| 534 |
"toc": false, |
| 535 |
"layout": "default", |
| 536 |
"tasks": [ |
| 537 |
"readme" |
| 538 |
], |
| 539 |
"plugins": [ |
| 540 |
"gulp-format-md" |
| 541 |
], |
| 542 |
"related": { |
| 543 |
"list": [ |
| 544 |
"has-value", |
| 545 |
"is-number", |
| 546 |
"is-plain-object", |
| 547 |
"isobject", |
| 548 |
"kind-of" |
| 549 |
] |
| 550 |
}, |
| 551 |
"reflinks": [ |
| 552 |
"verb" |
| 553 |
], |
| 554 |
"lint": { |
| 555 |
"reflinks": true |
| 556 |
} |
| 557 |
}, |
| 558 |
"gitHead": "71702a05ea6c03deb18a8a56061f18a9f206a74f", |
| 559 |
"_id": "[email protected]", |
| 560 |
"_npmVersion": "5.6.0", |
| 561 |
"_nodeVersion": "9.1.0", |
| 562 |
"_npmUser": { |
| 563 |
"name": "jonschlinkert", |
| 564 |
"email": "[email protected]" |
| 565 |
}, |
| 566 |
"dist": { |
| 567 |
"integrity": "sha512-MLMpI3eJVuEWhTg98GFObcPtvcn+CUe9wqpNNvMS48IBVz6dS0Wb4ERkPgVMeeirGfkmQ/Vjnx+TQ4A5pLIGMQ==", |
| 568 |
"shasum": "885d9fc5f6bb619c9cfca28775feb7c22bbb82ad", |
| 569 |
"tarball": "https://registry.npmjs.org/has-values/-/has-values-2.0.0.tgz" |
| 570 |
}, |
| 571 |
"maintainers": [ |
| 572 |
{ |
| 573 |
"name": "jonschlinkert", |
| 574 |
"email": "[email protected]" |
| 575 |
} |
| 576 |
], |
| 577 |
"_npmOperationalInternal": { |
| 578 |
"host": "s3://npm-registry-packages", |
| 579 |
"tmp": "tmp/has-values-2.0.0.tgz_1517354355906_0.20138088054955006" |
| 580 |
}, |
| 581 |
"directories": {} |
| 582 |
}, |
| 583 |
"2.0.1": { |
| 584 |
"name": "has-values", |
| 585 |
"description": "Returns true if any values exist, false if empty. Works for booleans, functions, numbers, strings, nulls, objects and arrays. ", |
| 586 |
"version": "2.0.1", |
| 587 |
"homepage": "https://github.com/jonschlinkert/has-values", |
| 588 |
"author": { |
| 589 |
"name": "Jon Schlinkert", |
| 590 |
"url": "https://github.com/jonschlinkert" |
| 591 |
}, |
| 592 |
"repository": { |
| 593 |
"type": "git", |
| 594 |
"url": "git+https://github.com/jonschlinkert/has-values.git" |
| 595 |
}, |
| 596 |
"bugs": { |
| 597 |
"url": "https://github.com/jonschlinkert/has-values/issues" |
| 598 |
}, |
| 599 |
"license": "MIT", |
| 600 |
"files": [ |
| 601 |
"index.js" |
| 602 |
], |
| 603 |
"main": "index.js", |
| 604 |
"engines": { |
| 605 |
"node": ">=6" |
| 606 |
}, |
| 607 |
"scripts": { |
| 608 |
"test": "mocha" |
| 609 |
}, |
| 610 |
"dependencies": { |
| 611 |
"kind-of": "^6.0.2" |
| 612 |
}, |
| 613 |
"devDependencies": { |
| 614 |
"gulp-format-md": "^1.0.0", |
| 615 |
"mocha": "^3.5.3" |
| 616 |
}, |
| 617 |
"keywords": [ |
| 618 |
"array", |
| 619 |
"boolean", |
| 620 |
"empty", |
| 621 |
"find", |
| 622 |
"function", |
| 623 |
"has", |
| 624 |
"hasOwn", |
| 625 |
"javascript", |
| 626 |
"js", |
| 627 |
"key", |
| 628 |
"keys", |
| 629 |
"node.js", |
| 630 |
"null", |
| 631 |
"number", |
| 632 |
"object", |
| 633 |
"properties", |
| 634 |
"property", |
| 635 |
"string", |
| 636 |
"type", |
| 637 |
"util", |
| 638 |
"utilities", |
| 639 |
"utility", |
| 640 |
"value", |
| 641 |
"values" |
| 642 |
], |
| 643 |
"verb": { |
| 644 |
"run": true, |
| 645 |
"toc": false, |
| 646 |
"layout": "default", |
| 647 |
"tasks": [ |
| 648 |
"readme" |
| 649 |
], |
| 650 |
"plugins": [ |
| 651 |
"gulp-format-md" |
| 652 |
], |
| 653 |
"related": { |
| 654 |
"list": [ |
| 655 |
"has-value", |
| 656 |
"is-number", |
| 657 |
"is-plain-object", |
| 658 |
"isobject", |
| 659 |
"kind-of" |
| 660 |
] |
| 661 |
}, |
| 662 |
"reflinks": [ |
| 663 |
"verb" |
| 664 |
], |
| 665 |
"lint": { |
| 666 |
"reflinks": true |
| 667 |
} |
| 668 |
}, |
| 669 |
"gitHead": "7bb2ba66535f9cc849c292841a8af73d83f79331", |
| 670 |
"_id": "[email protected]", |
| 671 |
"_npmVersion": "5.6.0", |
| 672 |
"_nodeVersion": "9.1.0", |
| 673 |
"_npmUser": { |
| 674 |
"name": "jonschlinkert", |
| 675 |
"email": "[email protected]" |
| 676 |
}, |
| 677 |
"dist": { |
| 678 |
"integrity": "sha512-+QdH3jOmq9P8GfdjFg0eJudqx1FqU62NQJ4P16rOEHeRdl7ckgwn6uqQjzYE0ZoHVV/e5E2esuJ5Gl5+HUW19w==", |
| 679 |
"shasum": "3876200ff86d8a8546a9264a952c17d5fc17579d", |
| 680 |
"tarball": "https://registry.npmjs.org/has-values/-/has-values-2.0.1.tgz" |
| 681 |
}, |
| 682 |
"maintainers": [ |
| 683 |
{ |
| 684 |
"name": "jonschlinkert", |
| 685 |
"email": "[email protected]" |
| 686 |
} |
| 687 |
], |
| 688 |
"_npmOperationalInternal": { |
| 689 |
"host": "s3://npm-registry-packages", |
| 690 |
"tmp": "tmp/has-values-2.0.1.tgz_1517360589346_0.17850913107395172" |
| 691 |
}, |
| 692 |
"directories": {} |
| 693 |
} |
| 694 |
}, |
| 695 |
"readme": "# has-values [](https://www.npmjs.com/package/has-values) [](https://npmjs.org/package/has-values) [](https://npmjs.org/package/has-values) [](https://travis-ci.org/jonschlinkert/has-values)\n\n> Returns true if any values exist, false if empty. Works for booleans, functions, numbers, strings, nulls, objects and arrays.\n\nPlease consider following this project's author, [Jon Schlinkert](https://github.com/jonschlinkert), and consider starring the project to show your :heart: and support.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install --save has-values\n```\n\n## Usage\n\n```js\nconst has = require('has-values');\n```\n\nCreate an `isEmpty` function by returning the inverse of the result from has-values:\n\n```js\nconst isEmpty = val => !has(val);\n```\n\n## Supported types\n\n### Arrays\n\n```js\nconsole.log(has(['a'])); //=> true\nconsole.log(has([0])); //=> true\nconsole.log(has([[[]]])); //=> false\nconsole.log(has([[], []])); //=> false\nconsole.log(has([])); //=> false\n```\n\n### Booleans\n\n```js\nconsole.log(has(true)); //=> true\nconsole.log(has(false)); //=> true\n```\n\n### Buffers\n\n```js\nconsole.log(has(new Buffer())); //=> false\nconsole.log(has(new Buffer('foo'))); //=> true\n```\n\n### Dates\n\nDates are always true.\n\n```js\nconsole.log(has(new Date())); //=> true\n```\n\n### Errors\n\nReturns `false` if `err.message` is an empty string.\n\n```js\nconsole.log(has(new Error())); //=> false\nconsole.log(has(new Error('foo'))); //=> true\n```\n\n### Functions\n\nFunctions are always true.\n\n```js\nconsole.log(has(function(foo) {})); //=> true\nconsole.log(has(function() {})); //=> true\n```\n\n### Maps\n\n```js\nconsole.log(has(new Map())); //=> false\nconsole.log(has(new Map([['foo', 'bar']]))); //=> true\n```\n\n### Null\n\n`null` is always true, as it's assumed that this is a user-defined value, versus `undefined` which is not.\n\n```js\nconsole.log(has(null)); //=> true\n```\n\n### Objects\n\n```js\nconsole.log(has({})); //=> false\nconsole.log(has({ a: 'a' }})); //=> true\nconsole.log(has({ foo: undefined })); //=> false\nconsole.log(has({ foo: null })); //=> true\n```\n\n### Numbers\n\n```js\nconsole.log(has(1)); //=> true\nconsole.log(has(0)); //=> true\n```\n\n### Regular expressions\n\n```js\nconsole.log(has(new RegExp())); //=> false\nconsole.log(has(new RegExp('foo'))); //=> true\n```\n\n### Sets\n\n```js\nconsole.log(has(new Set())); //=> false\nconsole.log(has(new Set(['foo', 'bar']))); //=> true\n```\n\n### Strings\n\n```js\nconsole.log(has('a')); //=> true\nconsole.log(has('')); //=> false\n```\n\n## Undefined\n\n```js\nconsole.log(has()); //=> false\nconsole.log(has(void 0)); //=> false\nconsole.log(has(undefined)); //=> false\n```\n\n## Release history\n\n### v2.0.0\n\n* no longer supports numbers as a string\n* optimizations\n* adds support for `regex` and `buffer`\n\n### v1.0.0\n\n* adds support for `Map` and `Set`\n* `zero` always returns true\n* `array` now recurses, so that an array of empty arrays will return `false`\n* `null` now returns true\n\n## About\n\n<details>\n<summary><strong>Contributing</strong></summary>\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).\n\n</details>\n\n<details>\n<summary><strong>Running Tests</strong></summary>\n\nRunning and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:\n\n```sh\n$ npm install && npm test\n```\n\n</details>\n\n<details>\n<summary><strong>Building docs</strong></summary>\n\n_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_\n\nTo generate the readme, run the following command:\n\n```sh\n$ npm install -g verbose/verb#dev verb-generate-readme && verb\n```\n\n</details>\n\n### Related projects\n\nYou might also be interested in these projects:\n\n* [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://github.com/jonschlinkert/has-value) | [homepage](https://github.com/jonschlinkert/has-value \"Returns true if a value exists, false if empty. Works with deeply nested values using object paths.\")\n* [is-number](https://www.npmjs.com/package/is-number): Returns true if the value is a number. comprehensive tests. | [homepage](https://github.com/jonschlinkert/is-number \"Returns true if the value is a number. comprehensive tests.\")\n* [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 \"Returns true if an object was created by the `Object` constructor.\")\n* [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 \"Returns true if the value is an object and not an array or null.\")\n* [kind-of](https://www.npmjs.com/package/kind-of): Get the native type of a value. | [homepage](https://github.com/jonschlinkert/kind-of \"Get the native type of a value.\")\n\n### Author\n\n**Jon Schlinkert**\n\n* [linkedin/in/jonschlinkert](https://linkedin.com/in/jonschlinkert)\n* [github/jonschlinkert](https://github.com/jonschlinkert)\n* [twitter/jonschlinkert](https://twitter.com/jonschlinkert)\n\n### License\n\nCopyright © 2018, [Jon Schlinkert](https://github.com/jonschlinkert).\nReleased under the [MIT License](LICENSE).\n\n***\n\n_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.6.0, on January 30, 2018._", |
| 696 |
"maintainers": [ |
| 697 |
{ |
| 698 |
"name": "jonschlinkert", |
| 699 |
"email": "[email protected]" |
| 700 |
} |
| 701 |
], |
| 702 |
"time": { |
| 703 |
"modified": "2018-01-31T01:03:10.470Z", |
| 704 |
"created": "2015-03-25T02:12:55.847Z", |
| 705 |
"0.1.1": "2015-03-25T02:12:55.847Z", |
| 706 |
"0.1.2": "2015-03-25T02:13:20.984Z", |
| 707 |
"0.1.3": "2015-03-27T21:09:00.648Z", |
| 708 |
"0.1.4": "2016-03-27T12:11:52.568Z", |
| 709 |
"1.0.0": "2017-05-19T18:43:39.654Z", |
| 710 |
"2.0.0": "2018-01-30T23:19:16.894Z", |
| 711 |
"2.0.1": "2018-01-31T01:03:10.470Z" |
| 712 |
}, |
| 713 |
"homepage": "https://github.com/jonschlinkert/has-values", |
| 714 |
"keywords": [ |
| 715 |
"array", |
| 716 |
"boolean", |
| 717 |
"empty", |
| 718 |
"find", |
| 719 |
"function", |
| 720 |
"has", |
| 721 |
"hasOwn", |
| 722 |
"javascript", |
| 723 |
"js", |
| 724 |
"key", |
| 725 |
"keys", |
| 726 |
"node.js", |
| 727 |
"null", |
| 728 |
"number", |
| 729 |
"object", |
| 730 |
"properties", |
| 731 |
"property", |
| 732 |
"string", |
| 733 |
"type", |
| 734 |
"util", |
| 735 |
"utilities", |
| 736 |
"utility", |
| 737 |
"value", |
| 738 |
"values" |
| 739 |
], |
| 740 |
"repository": { |
| 741 |
"type": "git", |
| 742 |
"url": "git+https://github.com/jonschlinkert/has-values.git" |
| 743 |
}, |
| 744 |
"author": { |
| 745 |
"name": "Jon Schlinkert", |
| 746 |
"url": "https://github.com/jonschlinkert" |
| 747 |
}, |
| 748 |
"bugs": { |
| 749 |
"url": "https://github.com/jonschlinkert/has-values/issues" |
| 750 |
}, |
| 751 |
"license": "MIT", |
| 752 |
"readmeFilename": "README.md", |
| 753 |
"users": { |
| 754 |
"rocket0191": true, |
| 755 |
"bsara": true |
| 756 |
}, |
| 757 |
"_attachments": {} |
| 758 |
} |