npm.io
4.0.3 • Published 2 months ago

fullstore

Licence
MIT
Version
4.0.3
Deps
0
Size
6 kB
Vulns
0
Weekly
0
Stars
2

Fullstore License NPM version Build Status

Functional variables.

Install

npm i fullstore --save

How to use?

import {fullstore} from 'fullstore';

const user = fullstore();

const getValue = () => {
    return 'name';
};

user(getValue());

console.log(user());
// output
'name';
import {fullstore} from 'fullstore';

const user = fullstore('hello');

console.log(user());
// output
'hello';
  • zames - converts callback-based functions to Promises and apply currying to arguments

  • wraptile - translate the evaluation of a function that takes multiple arguments into evaluating a sequence of 2 functions, each with a any count of arguments.

  • currify - translate the evaluation of a function that takes multiple arguments into evaluating a sequence of functions, each with a single or more arguments.

License

MIT

Keywords