Comparing version 0.2.2 to 0.3.1
'use strict'; | ||
var typeOf = require('kind-of'); | ||
var typeOf = require('./typeOf'); | ||
@@ -5,0 +5,0 @@ /** |
'use strict'; | ||
/** | ||
* | ||
* | ||
* @type {[type]} | ||
*/ | ||
module.exports = require('object.filter'); |
'use strict'; | ||
var isString = require('./isString'); | ||
var striptags = require('striptags'); | ||
@@ -23,4 +24,3 @@ /** | ||
if (!isString(str)) return ''; | ||
return str.substr(0, length); | ||
return striptags(str).substr(0, length); | ||
}; | ||
{ | ||
"name": "utils", | ||
"description": "Fast, generic JavaScript/node.js utility functions.", | ||
"version": "0.2.2", | ||
"version": "0.3.1", | ||
"homepage": "https://github.com/jonschlinkert/utils", | ||
"author": { | ||
"name": "Jon Schlinkert", | ||
"url": "https://github.com/jonschlinkert" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/jonschlinkert/utils.git" | ||
}, | ||
"author": "Jon Schlinkert (https://github.com/jonschlinkert)", | ||
"repository": "jonschlinkert/utils", | ||
"bugs": { | ||
"url": "https://github.com/jonschlinkert/utils/issues" | ||
}, | ||
"license": { | ||
"type": "MIT", | ||
"url": "https://github.com/jonschlinkert/utils/blob/master/LICENSE" | ||
}, | ||
"license": "MIT", | ||
"files": [ | ||
@@ -34,6 +25,6 @@ "index.js", | ||
"any": "^1.0.0", | ||
"arr-diff": "^1.0.1", | ||
"arr-diff": "^1.1.0", | ||
"arr-flatten": "^1.0.1", | ||
"arr-map": "^2.0.0", | ||
"arr-union": "^2.0.1", | ||
"arr-union": "^3.0.0", | ||
"array-each": "^0.1.1", | ||
@@ -44,31 +35,32 @@ "array-slice": "^0.2.3", | ||
"export-dirs": "^0.2.4", | ||
"export-files": "^2.0.1", | ||
"export-files": "^2.1.0", | ||
"for-in": "^0.1.4", | ||
"for-own": "^0.1.3", | ||
"has-values": "^0.1.3", | ||
"is-number": "^1.1.2", | ||
"is-plain-object": "^1.0.0", | ||
"kind-of": "^1.1.0", | ||
"make-iterator": "^0.1.1", | ||
"is-number": "^2.0.2", | ||
"is-plain-object": "^2.0.1", | ||
"kind-of": "^2.0.1", | ||
"make-iterator": "^0.2.0", | ||
"object.defaults": "^0.3.0", | ||
"object.filter": "^0.3.0", | ||
"object.omit": "^1.1.0", | ||
"object.omit": "^2.0.0", | ||
"object.pick": "^1.1.1", | ||
"object.reduce": "^0.1.7", | ||
"right-align": "^0.1.1", | ||
"word-wrap": "^1.0.2" | ||
"right-align": "^0.1.3", | ||
"striptags": "^2.0.3", | ||
"word-wrap": "^1.1.0" | ||
}, | ||
"devDependencies": { | ||
"chalk": "^1.0.0", | ||
"gulp-istanbul": "^0.8.1", | ||
"gulp-jshint": "^1.10.0", | ||
"gulp-mocha": "^2.0.1", | ||
"gulp-util": "^3.0.4", | ||
"jshint-stylish": "^1.0.1", | ||
"mocha": "^2.2.4", | ||
"relative": "^3.0.0", | ||
"should": "^6.0.1", | ||
"through2": "^0.6.5", | ||
"verb": "^0.7.0", | ||
"vinyl": "^0.4.6" | ||
"chalk": "^1.1.1", | ||
"gulp": "^3.9.0", | ||
"gulp-istanbul": "^0.10.0", | ||
"gulp-jshint": "^1.11.2", | ||
"gulp-mocha": "^2.1.3", | ||
"jshint-stylish": "^2.0.1", | ||
"mocha": "^2.3.2", | ||
"relative": "^3.0.1", | ||
"should": "^7.1.0", | ||
"through2": "^2.0.0", | ||
"verb": "^0.8.10", | ||
"vinyl": "^0.5.3" | ||
}, | ||
@@ -75,0 +67,0 @@ "keywords": [ |
331
README.md
@@ -5,6 +5,6 @@ # utils [![NPM version](https://badge.fury.io/js/utils.svg)](http://badge.fury.io/js/utils) [![Build Status](https://travis-ci.org/jonschlinkert/utils.svg)](https://travis-ci.org/jonschlinkert/utils) | ||
## Install with [npm](npmjs.org) | ||
Install with [npm](https://www.npmjs.com/) | ||
```bash | ||
npm i utils --save | ||
```sh | ||
$ npm i utils --save | ||
``` | ||
@@ -24,3 +24,2 @@ | ||
- [Running verb](#running-verb) | ||
* [About](#about) | ||
@@ -31,3 +30,3 @@ * [Related projects](#related-projects) | ||
_(Table of contents generated by [verb])_ | ||
_(Table of contents generated by [verb](https://github.com/verbose/verb))_ | ||
@@ -92,3 +91,3 @@ <!-- tocstop --> | ||
* `val` __{_}_* | ||
* `val` **{*}** | ||
* `returns` **{Array}** | ||
@@ -359,4 +358,4 @@ | ||
* `value` __{_}_* | ||
* `target` __{_}_* | ||
* `value` **{*}** | ||
* `target` **{*}** | ||
* `options` **{Object}** | ||
@@ -371,5 +370,15 @@ | ||
* `collection` **{Array|Object}** | ||
* `string` __{_}_* | ||
* `string` **{*}** | ||
* `returns` **{Boolean}** | ||
### [.tryRead](lib/fs/tryRead.js#L15) | ||
Try to read the given `filepath`, fail silently and return `null` | ||
when a file doesn't exist. Slightly faster than using `fs.existsSync`. | ||
**Params** | ||
* `fp` **{String}**: Path of the file to read. | ||
* `returns` **{String|Null}**: the `utf8` contents string, or `null` if an error is thrown. | ||
### [.tryReaddir](lib/fs/tryReaddir.js#L16) | ||
@@ -394,4 +403,40 @@ | ||
* `fp` **{String}**: File path of the file to require | ||
* `returns` __{_}_*: Returns the module function/object, or `null` if not found. | ||
* `returns` **{*}**: Returns the module function/object, or `null` if not found. | ||
### [.identity](lib/function/identity.js#L11) | ||
Returns the first argument passed to the function. | ||
* `returns` **{*}** | ||
### [.noop](lib/function/noop.js#L12) | ||
A "no-operation" function. Returns `undefined` regardless | ||
of the arguments it receives. | ||
* `returns` **{undefined}** | ||
### [.partialRight](lib/function/partialRight.js#L25) | ||
Partially applies arguments that will be appended to those provided to the returned function. | ||
**Params** | ||
* `ctx` **{Object}**: Optionally supply an invocation context for the returned function. | ||
* `fn` **{Function}**: The function to which arguments should be partially applied. | ||
* `arguments` __{..._}_*: List of arguments to be partially applied. | ||
* `returns` **{Function}**: Returns a function with partially applied arguments. | ||
**Example** | ||
```js | ||
function fullname(first, last) { | ||
return first + ' ' + last; | ||
} | ||
var name = partialRight(fn, 'Woodward'); | ||
name('Brian'); | ||
//=> 'Brian Woodward' | ||
``` | ||
### [.hasValues](lib/lang/hasValues.js#L34) | ||
@@ -404,3 +449,3 @@ | ||
* `object` **{Object}**: The object to check for `value` | ||
* `value` __{_}_*: the value to look for | ||
* `value` **{*}**: the value to look for | ||
* `returns` **{Boolean}**: True if any values exists. | ||
@@ -437,3 +482,3 @@ | ||
* `object` **{Object}**: The object to check for `value` | ||
* `value` __{_}_*: the value to look for | ||
* `value` **{*}**: the value to look for | ||
* `returns` **{Boolean}**: False if any values exists. | ||
@@ -582,2 +627,14 @@ | ||
### [mapValues](lib/object/mapValues.js#L17) | ||
Returns new object where each value is the result of | ||
calling the a `callback` function. | ||
**Params** | ||
* **{Object}**: obj The object to iterate over | ||
* `cb` **{Function}**: Callback function | ||
* **{Object}**: thisArg Invocation context of `cb` | ||
* `returns` **{Object}** | ||
### [.merge](lib/object/merge.js#L23) | ||
@@ -902,3 +959,3 @@ | ||
### [.truncate](lib/string/truncate.js#L21) | ||
### [.truncate](lib/string/truncate.js#L22) | ||
@@ -941,78 +998,99 @@ Truncate a string by removing all HTML tags and limiting the result to the specified `length`. | ||
```undefined | ||
-----------------------|-----------|-----------|-----------|-----------| | ||
File | % Stmts |% Branches | % Funcs | % Lines | | ||
-----------------------|-----------|-----------|-----------|-----------| | ||
array/ | 82.29 | 71.67 | 92.31 | 82.8 | | ||
after.js | 100 | 75 | 100 | 100 | | ||
arrayify.js | 100 | 100 | 100 | 100 | | ||
before.js | 100 | 75 | 100 | 100 | | ||
compact.js | 100 | 100 | 100 | 100 | | ||
difference.js | 100 | 100 | 100 | 100 | | ||
each.js | 100 | 100 | 100 | 100 | | ||
first.js | 88.89 | 83.33 | 100 | 88.24 | | ||
flatten.js | 100 | 100 | 100 | 100 | | ||
forEach.js | 100 | 100 | 100 | 100 | | ||
indexOf.js | 7.69 | 0 | 0 | 8.33 | | ||
isArray.js | 100 | 100 | 100 | 100 | | ||
last.js | 88.89 | 83.33 | 100 | 88.24 | | ||
map.js | 100 | 100 | 100 | 100 | | ||
slice.js | 100 | 100 | 100 | 100 | | ||
sort.js | 90.91 | 87.5 | 100 | 90.91 | | ||
union.js | 100 | 100 | 100 | 100 | | ||
unique.js | 100 | 100 | 100 | 100 | | ||
collection/ | 50 | 0 | 0 | 50 | | ||
any.js | 100 | 100 | 100 | 100 | | ||
contains.js | 42.86 | 0 | 0 | 42.86 | | ||
fs/ | 80 | 100 | 100 | 80 | | ||
tryReaddir.js | 80 | 100 | 100 | 80 | | ||
tryRequire.js | 80 | 100 | 100 | 80 | | ||
lang/ | 87.5 | 100 | 50 | 87.5 | | ||
hasValues.js | 100 | 100 | 100 | 100 | | ||
isEmpty.js | 66.67 | 100 | 0 | 66.67 | | ||
isObject.js | 100 | 100 | 100 | 100 | | ||
isPlainObject.js | 100 | 100 | 100 | 100 | | ||
math/ | 100 | 100 | 100 | 100 | | ||
sum.js | 100 | 100 | 100 | 100 | | ||
object/ | 70 | 54.55 | 27.27 | 69.12 | | ||
defaults.js | 100 | 100 | 100 | 100 | | ||
extend.js | 100 | 83.33 | 100 | 100 | | ||
filter.js | 100 | 100 | 100 | 100 | | ||
forIn.js | 100 | 100 | 100 | 100 | | ||
forOwn.js | 100 | 100 | 100 | 100 | | ||
functions.js | 28.57 | 0 | 0 | 28.57 | | ||
hasOwn.js | 100 | 100 | 100 | 100 | | ||
keys.js | 33.33 | 50 | 0 | 33.33 | | ||
merge.js | 100 | 75 | 100 | 100 | | ||
methods.js | 28.57 | 0 | 0 | 28.57 | | ||
omit.js | 100 | 100 | 100 | 100 | | ||
pick.js | 100 | 100 | 100 | 100 | | ||
reduce.js | 100 | 100 | 100 | 100 | | ||
some.js | 30 | 0 | 0 | 30 | | ||
string/ | 99.27 | 96.77 | 96 | 99.09 | | ||
camelcase.js | 100 | 100 | 100 | 100 | | ||
centerAlign.js | 100 | 100 | 100 | 100 | | ||
chop.js | 100 | 100 | 100 | 100 | | ||
count.js | 100 | 100 | 100 | 100 | | ||
dashcase.js | 100 | 100 | 100 | 100 | | ||
dotcase.js | 100 | 100 | 100 | 100 | | ||
ellipsis.js | 100 | 100 | 100 | 100 | | ||
hyphenate.js | 100 | 100 | 100 | 100 | | ||
index.js | 100 | 100 | 100 | 100 | | ||
isString.js | 100 | 100 | 100 | 100 | | ||
pascalcase.js | 100 | 100 | 100 | 100 | | ||
pathcase.js | 100 | 100 | 100 | 100 | | ||
replace.js | 100 | 100 | 100 | 100 | | ||
reverse.js | 100 | 100 | 100 | 100 | | ||
rightAlign.js | 100 | 100 | 100 | 100 | | ||
sentencecase.js | 100 | 100 | 100 | 100 | | ||
slugify.js | 100 | 100 | 100 | 100 | | ||
snakecase.js | 100 | 100 | 100 | 100 | | ||
toString.js | 50 | 0 | 0 | 50 | | ||
truncate.js | 100 | 100 | 100 | 100 | | ||
wordwrap.js | 100 | 100 | 100 | 100 | | ||
-----------------------|-----------|-----------|-----------|-----------| | ||
All files | 86.43 | 79.05 | 76.79 | 85.34 | | ||
-----------------------|-----------|-----------|-----------|-----------| | ||
``` | ||
-----------------------|----------|----------|----------|----------|----------------| | ||
File | % Stmts | % Branch | % Funcs | % Lines |Uncovered Lines | | ||
-----------------------|----------|----------|----------|----------|----------------| | ||
utils/ | 100 | 100 | 100 | 100 | | | ||
index.js | 100 | 100 | 100 | 100 | | | ||
utils/lib/ | 100 | 100 | 100 | 100 | | | ||
index.js | 100 | 100 | 100 | 100 | | | ||
utils/lib/array/ | 91.75 | 83.33 | 100 | 92.55 | | | ||
after.js | 100 | 75 | 100 | 100 | | | ||
arrayify.js | 100 | 100 | 100 | 100 | | | ||
before.js | 100 | 75 | 100 | 100 | | | ||
compact.js | 100 | 100 | 100 | 100 | | | ||
difference.js | 100 | 100 | 100 | 100 | | | ||
each.js | 100 | 100 | 100 | 100 | | | ||
first.js | 88.89 | 83.33 | 100 | 88.24 | 27,46 | | ||
flatten.js | 100 | 100 | 100 | 100 | | | ||
forEach.js | 100 | 100 | 100 | 100 | | | ||
index.js | 100 | 100 | 100 | 100 | | | ||
indexOf.js | 76.92 | 70 | 100 | 83.33 | 23,40 | | ||
isArray.js | 100 | 100 | 100 | 100 | | | ||
last.js | 88.89 | 83.33 | 100 | 88.24 | 27,46 | | ||
map.js | 100 | 100 | 100 | 100 | | | ||
slice.js | 100 | 100 | 100 | 100 | | | ||
sort.js | 90.91 | 87.5 | 100 | 90.91 | 27 | | ||
union.js | 100 | 100 | 100 | 100 | | | ||
unique.js | 100 | 100 | 100 | 100 | | | ||
utils/lib/collection/ | 55.56 | 0 | 0 | 55.56 | | | ||
any.js | 100 | 100 | 100 | 100 | | | ||
contains.js | 42.86 | 0 | 0 | 42.86 | 18,19,21,22 | | ||
index.js | 100 | 100 | 100 | 100 | | | ||
utils/lib/fs/ | 68.75 | 100 | 66.67 | 68.75 | | | ||
index.js | 100 | 100 | 100 | 100 | | | ||
tryRead.js | 40 | 100 | 0 | 40 | 16,17,19 | | ||
tryReaddir.js | 80 | 100 | 100 | 80 | 20 | | ||
tryRequire.js | 80 | 100 | 100 | 80 | 19 | | ||
utils/lib/function/ | 36.36 | 0 | 0 | 36.36 | | | ||
identity.js | 50 | 100 | 0 | 50 | 12 | | ||
index.js | 100 | 100 | 100 | 100 | | | ||
noop.js | 50 | 100 | 0 | 50 | 13 | | ||
partialRight.js | 16.67 | 0 | 0 | 16.67 | 26,27,28,29,30 | | ||
utils/lib/lang/ | 100 | 100 | 100 | 100 | | | ||
hasValues.js | 100 | 100 | 100 | 100 | | | ||
index.js | 100 | 100 | 100 | 100 | | | ||
isEmpty.js | 100 | 100 | 100 | 100 | | | ||
isObject.js | 100 | 100 | 100 | 100 | | | ||
isPlainObject.js | 100 | 100 | 100 | 100 | | | ||
typeOf.js | 100 | 100 | 100 | 100 | | | ||
utils/lib/math/ | 100 | 100 | 100 | 100 | | | ||
index.js | 100 | 100 | 100 | 100 | | | ||
sum.js | 100 | 100 | 100 | 100 | | | ||
utils/lib/object/ | 62.77 | 46.15 | 17.65 | 61.96 | | | ||
defaults.js | 100 | 100 | 100 | 100 | | | ||
extend.js | 100 | 83.33 | 100 | 100 | | | ||
filter.js | 100 | 100 | 100 | 100 | | | ||
forIn.js | 100 | 100 | 100 | 100 | | | ||
forOwn.js | 100 | 100 | 100 | 100 | | | ||
functions.js | 28.57 | 0 | 0 | 28.57 | 21,23,24,25,29 | | ||
hasOwn.js | 100 | 100 | 100 | 100 | | | ||
index.js | 100 | 100 | 100 | 100 | | | ||
keys.js | 33.33 | 50 | 0 | 33.33 | 16,17,18,20 | | ||
mapValues.js | 37.5 | 100 | 0 | 37.5 | 18,19,21,22,25 | | ||
merge.js | 100 | 75 | 100 | 100 | | | ||
methods.js | 28.57 | 0 | 0 | 28.57 | 16,18,19,20,24 | | ||
omit.js | 100 | 100 | 100 | 100 | | | ||
pick.js | 100 | 100 | 100 | 100 | | | ||
pluck.js | 75 | 100 | 0 | 75 | 17 | | ||
prop.js | 33.33 | 100 | 0 | 33.33 | 4,5 | | ||
reduce.js | 100 | 100 | 100 | 100 | | | ||
result.js | 25 | 0 | 0 | 25 | 6,7,8,10,11,13 | | ||
some.js | 30 | 0 | 0 | 30 |... 11,12,13,16 | | ||
utils/lib/string/ | 99.28 | 96.77 | 96 | 99.1 | | | ||
camelcase.js | 100 | 100 | 100 | 100 | | | ||
centerAlign.js | 100 | 100 | 100 | 100 | | | ||
chop.js | 100 | 100 | 100 | 100 | | | ||
count.js | 100 | 100 | 100 | 100 | | | ||
dashcase.js | 100 | 100 | 100 | 100 | | | ||
dotcase.js | 100 | 100 | 100 | 100 | | | ||
ellipsis.js | 100 | 100 | 100 | 100 | | | ||
hyphenate.js | 100 | 100 | 100 | 100 | | | ||
index.js | 100 | 100 | 100 | 100 | | | ||
isString.js | 100 | 100 | 100 | 100 | | | ||
pascalcase.js | 100 | 100 | 100 | 100 | | | ||
pathcase.js | 100 | 100 | 100 | 100 | | | ||
replace.js | 100 | 100 | 100 | 100 | | | ||
reverse.js | 100 | 100 | 100 | 100 | | | ||
rightAlign.js | 100 | 100 | 100 | 100 | | | ||
sentencecase.js | 100 | 100 | 100 | 100 | | | ||
slugify.js | 100 | 100 | 100 | 100 | | | ||
snakecase.js | 100 | 100 | 100 | 100 | | | ||
toString.js | 50 | 0 | 0 | 50 | 10 | | ||
truncate.js | 100 | 100 | 100 | 100 | | | ||
wordwrap.js | 100 | 100 | 100 | 100 | | | ||
-----------------------|----------|----------|----------|----------|----------------| | ||
All files | 84.54 | 80.52 | 67.16 | 83.43 | | | ||
-----------------------|----------|----------|----------|----------|----------------| | ||
``` | ||
@@ -1023,4 +1101,4 @@ ## Running tests | ||
```bash | ||
npm i -d && npm test | ||
```sh | ||
$ npm i -d && npm test | ||
``` | ||
@@ -1030,3 +1108,3 @@ | ||
> Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/utils/issues) | ||
> Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/utils/issues/new). | ||
@@ -1048,3 +1126,3 @@ ### Adding utils | ||
Do not edit the readme manually since [verb] is used to generate documentation. | ||
Do not edit the readme manually since [verb](https://github.com/verbose/verb)is used to generate documentation. | ||
@@ -1056,6 +1134,6 @@ * API docs: If you see an error in the API documentation, just update the code comments for that method, then [run verb](#running-verb). | ||
Run [verb] to generate documentation: | ||
Install dev dependencies, then run [verb](https://github.com/verbose/verb): | ||
```js | ||
npm i -d && verb | ||
$ npm install -d && verb | ||
``` | ||
@@ -1080,29 +1158,30 @@ | ||
> This project depends on these great libraries: | ||
> This project depends on these great libraries. If you don't need a full utility belt for your project, any of these can be used by themselves: | ||
* [array-slice](https://github.com/jonschlinkert/array-slice): Array-slice method. Slices `array` from the `start` index up to, but not including, the `end`… [more](https://github.com/jonschlinkert/array-slice) | ||
* [any](https://github.com/jonschlinkert/any): Returns `true` if a value exists in the given string, array or object. | ||
* [arr-map](https://github.com/jonschlinkert/arr-map): Faster, node.js focused alternative to JavaScript's native array map. | ||
* [arr-union](https://github.com/jonschlinkert/arr-union): Combines a list of arrays, returning a single array with unique values, using strict equality… [more](https://github.com/jonschlinkert/arr-union) | ||
* [array-each](https://github.com/jonschlinkert/array-each): Loop over each item in an array and call the given function on every element. | ||
* [arr-flatten](https://github.com/jonschlinkert/arr-flatten): Recursively flatten an array or arrays. This is the fastest implementation of array flatten. | ||
* [array-unique](https://github.com/jonschlinkert/array-unique): Return an array free of duplicate values. Fastest ES5 implementation. | ||
* [arr-diff](https://github.com/jonschlinkert/arr-diff): Returns an array with only the unique values from the first array, by excluding all… [more](https://github.com/jonschlinkert/arr-diff) | ||
* [center-align](https://github.com/jonschlinkert/center-align): Center-align the text in a string. | ||
* [export-dirs](https://github.com/jonschlinkert/export-dirs): Export directories and their files as node.js modules. | ||
* [export-files](https://github.com/jonschlinkert/export-files): node.js utility for exporting a directory of files as modules. | ||
* [for-in](https://github.com/jonschlinkert/for-in): Iterate over the own and inherited enumerable properties of an objecte, and return an object… [more](https://github.com/jonschlinkert/for-in) | ||
* [for-own](https://github.com/jonschlinkert/for-own): Iterate over the own enumerable properties of an object, and return an object with properties… [more](https://github.com/jonschlinkert/for-own) | ||
* [has-values](https://github.com/jonschlinkert/has-values): Returns true if any values exist, false if empty. Works for booleans, functions, numbers, strings,… [more](https://github.com/jonschlinkert/has-values) | ||
* [is-plain-object](https://github.com/jonschlinkert/is-plain-object): Returns true if an object was created by the `Object` constructor. | ||
* [is-number](https://github.com/jonschlinkert/is-number): Returns true if the value is a number. comprehensive tests. | ||
* [kind-of](https://github.com/jonschlinkert/kind-of): Get the native type of a value. | ||
* [make-iterator](https://github.com/jonschlinkert/make-iterator): Convert an argument into a valid iterator. Based on the `.makeIterator()` implementation in mout https://github.com/mout/mout. | ||
* [object.defaults](https://github.com/jonschlinkert/object.defaults): Like `extend` but only copies missing properties/values to the target object. | ||
* [object.filter](https://github.com/jonschlinkert/object.filter): Create a new object filtered to have only properties for which the callback returns true. | ||
* [object.omit](https://github.com/jonschlinkert/object.omit): Return a copy of an object without the given key, or array of keys. | ||
* [object.pick](https://github.com/jonschlinkert/object.pick): Returns a filtered copy of an object with only the specified keys, like `pick` from… [more](https://github.com/jonschlinkert/object.pick) | ||
* [object.reduce](https://github.com/jonschlinkert/object.reduce): Reduces an object to a value that is the accumulated result of running each property… [more](https://github.com/jonschlinkert/object.reduce) | ||
* [right-align](https://github.com/jonschlinkert/right-align): Right-align the text in a string. | ||
* [word-wrap](https://github.com/jonschlinkert/word-wrap): Wrap words to a specified length. | ||
* [any](https://www.npmjs.com/package/any): Returns `true` if a value exists in the given string, array or object. | [homepage](https://github.com/jonschlinkert/any) | ||
* [arr-diff](https://www.npmjs.com/package/arr-diff): Returns an array with only the unique values from the first array, by excluding all… [more](https://www.npmjs.com/package/arr-diff) | [homepage](https://github.com/jonschlinkert/arr-diff) | ||
* [arr-flatten](https://www.npmjs.com/package/arr-flatten): Recursively flatten an array or arrays. This is the fastest implementation of array flatten. | [homepage](https://github.com/jonschlinkert/arr-flatten) | ||
* [arr-map](https://www.npmjs.com/package/arr-map): Faster, node.js focused alternative to JavaScript's native array map. | [homepage](https://github.com/jonschlinkert/arr-map) | ||
* [arr-union](https://www.npmjs.com/package/arr-union): Combines a list of arrays, returning a single array with unique values, using strict equality… [more](https://www.npmjs.com/package/arr-union) | [homepage](https://github.com/jonschlinkert/arr-union) | ||
* [array-each](https://www.npmjs.com/package/array-each): Loop over each item in an array and call the given function on every element. | [homepage](https://github.com/jonschlinkert/array-each) | ||
* [array-slice](https://www.npmjs.com/package/array-slice): Array-slice method. Slices `array` from the `start` index up to, but not including, the `end`… [more](https://www.npmjs.com/package/array-slice) | [homepage](https://github.com/jonschlinkert/array-slice) | ||
* [array-unique](https://www.npmjs.com/package/array-unique): Return an array free of duplicate values. Fastest ES5 implementation. | [homepage](https://github.com/jonschlinkert/array-unique) | ||
* [center-align](https://www.npmjs.com/package/center-align): Center-align the text in a string. | [homepage](https://github.com/jonschlinkert/center-align) | ||
* [export-dirs](https://www.npmjs.com/package/export-dirs): Export directories and their files as node.js modules. | [homepage](https://github.com/jonschlinkert/export-dirs) | ||
* [export-files](https://www.npmjs.com/package/export-files): node.js utility for exporting a directory of files as modules. | [homepage](https://github.com/jonschlinkert/export-files) | ||
* [for-in](https://www.npmjs.com/package/for-in): Iterate over the own and inherited enumerable properties of an objecte, and return an object… [more](https://www.npmjs.com/package/for-in) | [homepage](https://github.com/jonschlinkert/for-in) | ||
* [for-own](https://www.npmjs.com/package/for-own): Iterate over the own enumerable properties of an object, and return an object with properties… [more](https://www.npmjs.com/package/for-own) | [homepage](https://github.com/jonschlinkert/for-own) | ||
* [has-values](https://www.npmjs.com/package/has-values): Returns true if any values exist, false if empty. Works for booleans, functions, numbers, strings,… [more](https://www.npmjs.com/package/has-values) | [homepage](https://github.com/jonschlinkert/has-values) | ||
* [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) | ||
* [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) | ||
* [kind-of](https://www.npmjs.com/package/kind-of): Get the native type of a value. | [homepage](https://github.com/jonschlinkert/kind-of) | ||
* [make-iterator](https://www.npmjs.com/package/make-iterator): Convert an argument into a valid iterator. Based on the `.makeIterator()` implementation in mout https://github.com/mout/mout. | [homepage](https://github.com/jonschlinkert/make-iterator) | ||
* [object.defaults](https://www.npmjs.com/package/object.defaults): Like `extend` but only copies missing properties/values to the target object. | [homepage](https://github.com/jonschlinkert/object.defaults) | ||
* [object.filter](https://www.npmjs.com/package/object.filter): Create a new object filtered to have only properties for which the callback returns true. | [homepage](https://github.com/jonschlinkert/object.filter) | ||
* [object.omit](https://www.npmjs.com/package/object.omit): Return a copy of an object excluding the given key, or array of keys. Also… [more](https://www.npmjs.com/package/object.omit) | [homepage](https://github.com/jonschlinkert/object.omit) | ||
* [object.pick](https://www.npmjs.com/package/object.pick): Returns a filtered copy of an object with only the specified keys, like `pick` from… [more](https://www.npmjs.com/package/object.pick) | [homepage](https://github.com/jonschlinkert/object.pick) | ||
* [object.reduce](https://www.npmjs.com/package/object.reduce): Reduces an object to a value that is the accumulated result of running each property… [more](https://www.npmjs.com/package/object.reduce) | [homepage](https://github.com/jonschlinkert/object.reduce) | ||
* [right-align](https://www.npmjs.com/package/right-align): Right-align the text in a string. | [homepage](https://github.com/jonschlinkert/right-align) | ||
* [striptags](https://www.npmjs.com/package/striptags): PHP strip_tags in Node.js | [homepage](https://github.com/ericnorris/striptags) | ||
* [word-wrap](https://www.npmjs.com/package/word-wrap): Wrap words to a specified length. | [homepage](https://github.com/jonschlinkert/word-wrap) | ||
@@ -1118,3 +1197,3 @@ ## Author | ||
Copyright (c) 2015 Jon Schlinkert | ||
Copyright © 2015 Jon Schlinkert | ||
Released under the MIT license. | ||
@@ -1124,10 +1203,2 @@ | ||
_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on April 28, 2015._ | ||
<!-- deps:mocha jshint-stylish --> | ||
<!-- reflinks generated by verb-reflinks plugin --> | ||
[assemble]: http://assemble.io | ||
[template]: https://github.com/jonschlinkert/template | ||
[verb]: https://github.com/assemble/verb | ||
_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on September 23, 2015._ |
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
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
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
71337
82
1430
1185
26
4
+ Addedstriptags@^2.0.3
+ Addedarr-union@3.1.0(transitive)
+ Addedis-extendable@0.1.1(transitive)
+ Addedis-number@2.1.0(transitive)
+ Addedis-plain-object@2.0.4(transitive)
+ Addedkind-of@2.0.1(transitive)
+ Addedmake-iterator@0.2.1(transitive)
+ Addedobject.omit@2.0.1(transitive)
+ Addedstriptags@2.2.1(transitive)
- Removedarr-union@2.1.0(transitive)
- Removedis-number@1.1.2(transitive)
- Removedis-plain-object@1.0.0(transitive)
- Removedisobject@0.2.0(transitive)
- Removedkind-of@1.1.0(transitive)
- Removedobject.omit@1.1.0(transitive)
Updatedarr-diff@^1.1.0
Updatedarr-union@^3.0.0
Updatedexport-files@^2.1.0
Updatedis-number@^2.0.2
Updatedis-plain-object@^2.0.1
Updatedkind-of@^2.0.1
Updatedmake-iterator@^0.2.0
Updatedobject.omit@^2.0.0
Updatedright-align@^0.1.3
Updatedword-wrap@^1.1.0