Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

flatten-array

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

flatten-array - npm Package Compare versions

Comparing version 0.0.4 to 1.0.0

.npmignore

34

package.json
{
"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
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc