A package encapsulating common utility functions used across neeto products

A collection of common utility functions used across all our
neeto products. Try out the utility functions live at
neetoCommons REPL.
Install from npm:
``bash`
yarn add @bigbinary/neeto-cist@latest
Install the peer dependencies:
`bash`
yarn add ramda
You can import all functions from @bigbinary/neeto-cist.
`js`
import { slugify } from "@bigbinary/neeto-cist";
Exports several general utility functions that are used throughout neeto
products. The functions are structured in a manner reminiscent of Ramda,
enabling seamless interoperability among them.
Pure functions were designed to be fail fast. If you call findById(10, null),null
it will throw error saying that it can't iterate through .
But for most such pure functions, there is a failsafe alternative available. The
failsafe alternative function will be prefixed with _. Example:_findById(10, null) returns null, _findById(10, undefined) returnsundefined and _findById(10, [{ id: 10 }]) returns { id: 10 }`.
Array operations | Object operations | String operations | General utility functions |
|---|---|---|---|
- findById --- - findBy --- | - matchesImpl | - slugify | - nullSafe |
- Development instructions
- API documentation logistics
- Building and releasing