npm

npm’s 2019 JavaScript ecosystem survey analysis is now available! Get your copy here »

noflo-underscore

0.0.4 • Public • Published

Underscore.js Utilities as NoFlo Components
Build Status Dependency Status NPM version Stories in Ready

This module contains simple proxies of Underscore.js functions.

Feel free to contribute new components and graphs! I'll try to incorporate as soon as time allows.

Usage

GroupBy

It works exactly like _.groupBy and accepts individual packets, which are converted into an array at an endgroup or a disconnect to be forwarded with _.groupBy applied on it.

In-ports

  • IN: packets each to be grouped by a property
  • PROPERTY: the property to group the packets by

Out-ports

  • OUT: the grouped object

Examples

Grouping by length of strings:

'length' -> PROPERTY GroupBy(underscore/GroupBy)
'1\n2\n3' -> IN SplitA(core/SplitStr) OUT -> IN GroupBy() OUT -> IN Output(core/Output)

Keywords

none

install

npm i noflo-underscore

Downloadsweekly downloads

16

version

0.0.4

license

none

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability