Licence
MIT
Version
0.0.0
Deps
0
Size
153 kB
Vulns
0
Weekly
0
Functional point-free utilities for js
[WIP]
Table of Contents
What is this?
It's a simple collection of functional utilities for JavaScript and Typescript 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!