pure-utilities

1.3.0 • Public • Published

pure-utilities

npm build

A set of pure functions.

Table of Contents

Background

A pure function is a function that given the same input will give you the same output. It also does not have any side effects. The library contains many pure functions, which by design, do not depend on other non built-in functions. This limitation makes it simpler to consume the functions for inlining (e.g. by bundlers or compilers).

Install

npm install pure-utilities

Usage

import { flatten } from 'pure-utilities/object'
console.log(flatten({ hello: { world: '1234' } })) // { 'hello.world': '1234' }

Maintainers

@emilos

Contibuting

All contributions are highly appreciated. Please feel free to open new issues and send PRs. All new function names need to be lowercased and independent on other non built-in functions. Please consider updating the docs and fixtures as a part of the PRs.

License

MIT

Dependencies (0)

    Dev Dependencies (3)

    Package Sidebar

    Install

    npm i pure-utilities

    Weekly Downloads

    8,607

    Version

    1.3.0

    License

    MIT

    Unpacked Size

    111 kB

    Total Files

    194

    Last publish

    Collaborators

    • buxlabs-dev
    • emilos