New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

parliament

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

parliament

Simple functional utility library.

latest
Source
npmnpm
Version
0.0.2
Version published
Maintainers
1
Created
Source

parliament.js

parliament.js is a functional programming utility belt in the vein of Underscore, Lodash, Ramda, Highland and similar libraries. It is contained in one tiny and tidy ES6 file.

Install

npm install parliament

Examples

One of the strengths of functional programming easily it composes. For instance, this is how you would define flatMap:

let flatMap = seq(map, flatten);

Similarly, this is how the Underscore function compact is implemented:

let compact = filter(isTruthy);

Why not X instead?

When in doubt, use Lodash. But that doesn't stop me from writing this :)

License

MIT © Martin Svanberg

FAQs

Package last updated on 02 Jul 2015

Did you know?

Socket

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