Skip to content

Functional point-free utilities for the JavaScript standard library

License

Notifications You must be signed in to change notification settings

raiondesu-experiments/pointless-js

Repository files navigation

Functional tree-shakeable point-free utilities for js

[WIP]

travis npm size coveralls code quality

code pen

Table of Contents

What is this?

It's a simple, typed and tree-shakeable collection of functional utilities for the JavaScript standard library.

If you need similar utilities for fetch - check out pointless-fetch.


Installation

npm:

npm i -S pointless-js

browser:

<!-- ES2015 -->
<script type="module">
  import * as P from 'https://unpkg.com/pointless-js';

  // use it here
</script>

<!-- ES5 with IE11+ general syntax polyfills, global object - `P` -->
<!-- Polyfill `window.Promise` and `Object.assign` yourself! -->
<script src="https://unpkg.com/pointless-js/dist/umd.js"></script>

Importing

// TS-module (pure typescript),
// allows compilation settings to be set from the project config
import * as P from 'pointless-js/src';

// ES-module (npm/node, typescript)
import * as P from 'pointless-js';

// ESNext (no polyfills for esnext)
import * as P from 'pointless-js/dist/esnext';

// ES-module (browser, node)
import * as P from 'https://unpkg.com/pointless-js';

// Classic node commonjs
const P = require('pointless-js/dist/js');

Something's missing or found a bug?
Feel free to create an issue! 😉

About

Functional point-free utilities for the JavaScript standard library

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published