flatten-array
Advanced tools
Comparing version 0.0.4 to 1.0.0
{ | ||
"name": "flatten-array", | ||
"version": "0.0.4", | ||
"description": "Flattens nested arrays.", | ||
"main": "index.js", | ||
"version": "1.0.0", | ||
"description": "Recursively flattens an Array", | ||
"main": "src/flatten-array.js", | ||
"scripts": { | ||
"test": "prova" | ||
"test": "mocha", | ||
"test-perf": "mocha --fgrep '[PERF]'", | ||
"test-unit": "mocha --fgrep '[UNIT]'" | ||
}, | ||
"devDependencies": { | ||
"prova": "*" | ||
}, | ||
"repository": { | ||
"url": "git@github.com:azer/flatten-array.git", | ||
"type": "git" | ||
"type": "git", | ||
"url": "git+https://github.com/FagnerMartinsBrack/flatten-array.git" | ||
}, | ||
"author": "Azer Koçulu <azer@kodfabrik.com>", | ||
"license": "BSD" | ||
"keywords": [ | ||
"flatten", | ||
"array" | ||
], | ||
"author": "Fagner <github@fagnermartins.com> (https://github.com/FagnerMartinsBrack/)", | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/FagnerMartinsBrack/flatten-array/issues" | ||
}, | ||
"homepage": "https://github.com/FagnerMartinsBrack/flatten-array#readme", | ||
"devDependencies": { | ||
"benchmark": "2.1.0", | ||
"expect.js": "0.3.1", | ||
"mocha": "2.4.5" | ||
} | ||
} |
@@ -1,19 +0,33 @@ | ||
## flatten-array | ||
# Flatten Array | ||
flattens nested arrays. | ||
A simple module that deeply flattens a given [Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array) | ||
### Install | ||
## Installation | ||
```bash | ||
$ npm install flatten-array | ||
In your npm supported project, run: | ||
```shell | ||
$ npm install flatten-array --save | ||
``` | ||
### Usage | ||
Include the module in your desired file: | ||
```js | ||
flatten = require('flatten-array') | ||
``` | ||
var flattenArray = require("flatten-array"); | ||
``` | ||
flatten([1, 2, [3, [4, 5], 6], 7]) | ||
// => [1, 2, 3, 4, 5, 6, 7] | ||
## Basic Usage | ||
Flattens an array deeply: | ||
```javascript | ||
flattenArray([1, [2, 3, [4, 5]]]); // => [1, 2, 3, 4, 5] | ||
``` | ||
## Manual release steps | ||
* Increment the "version" attribute of `package.json` | ||
* Commit with the message "Release version x.x.x" | ||
* Create version tag in git | ||
* Create a github release | ||
* Release on npm |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
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
Misc. License Issues
License(Experimental) A package's licensing information has fine-grained problems.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No License Found
License(Experimental) License information could not be found.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
4410
7
0
0
51
1
0
33
3
1
1