cf-sectionizer

0.0.3 • Public • Published

cf-sectionizer

Notice: this module is deprecated. Since v1.0.0 of cf-list-aggregator, cf-section-extrapolator has replaced cf-sectionizer. This repo should only be used for supporting pre 1.0.0 versions of the list aggregator.


Takes a List (or array of Lists) and a Section and injects the Section ID into the List's Section array.

When a -1 is encountered, this is a {CURRENT} section mapping so only the current section ID is returned.

When a -2 is encountered, this is a {CURRENTANDCHILDREN} section mapping so the current section ID and the children of that section are returned.

See tests for usage information.

Installation

  npm install cf-sectionizer

Usage

Credits

Dom Harrington follow me on twitter @domharrington

Licence

Licensed under the New BSD License

Readme

Keywords

none

Package Sidebar

Install

npm i cf-sectionizer

Weekly Downloads

10

Version

0.0.3

License

none

Last publish

Collaborators

  • jack828