flatten : Flatten arbitrarily nested arrays into a non-nested list of non-array items. You can installing flatten npm packages, there are two ways to install this module locally and globaly. -g option is specified to global. Execute the below command.
$ sudo npm install flatten $ sudo npm install -g flatten
If want to update the flatten package execute the command as below,
$ sudo npm update flatten
Update package globally,
$ npm install -g flatten
$ sudo git clone https://github.com/rektide/flatten.git
$ sudo npm install -g ./flatten
flatten@1.0.2 /usr/lib/node_modules/flatten
You can uninstall or remove this package from your node_modules run the command as below,
$ sudo npm uninstall flatten
Package Name | flatten |
Version | 1.0.2 |
Description | Flatten arbitrarily nested arrays into a non-nested list of non-array items |
Released Date | 2016-01-20T01:00:17.869Z |
Published by | jfhbrook |
How to Learn | https://www.npmjs.com/package/flatten/tutorial |