Socket
Socket
Sign inDemoInstall

cf-sectionizer

Package Overview
Dependencies
2
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    cf-sectionizer

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


Version published
Maintainers
1
Install size
976 kB
Created

Readme

Source

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

FAQs

Last updated on 23 Oct 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc