[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#780652: ITP: node-concat-map -- concatenative mapdashery for Node.js

Package: wnpp
Severity: wishlist
Owner: Bas Couwenberg <sebastic@debian.org>

* Package name    : node-concat-map
  Version         : 0.0.1
  Upstream Author : James Halliday <mail@substack.net>
* URL             : https://github.com/substack/node-concat-map
* License         : Expat
  Programming Lang: JavaScript
  Description     : concatenative mapdashery for Node.js

node-concat-map provides a single method concatMap(xs, fn) that will return
an array of concatenated elements by calling fn(x, i) for each element x and
each index i in the array xs.

When fn(x, i) returns an array, its result will be concatenated with the
result array. If fn(x, i) returns anything else, that value will be pushed
onto the end of the result array.

node-concat-map is required for node-brace-expansion, which in turn is
required for node-minimatch >= 2.0.0.

The node-concat-map package will be maintained in the JavaScript team.

Reply to: