Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including fullstore with all npm packages installed. Try it out:

var fullstore = require("fullstore")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

fullstore v1.1.0

functional variables

Fullstore License NPM version Dependency Status Build Status

Functional variables.

Install

npm i fullstore --save

How to use?

const fullstore = require('fullstore');
const user = fullstore();

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

user(getValue());

console.log(user());
// output
'name'
const fullstore = require('fullstore');
const user = fullstore('hello');

console.log(user());
// output
'hello'

Environments

In old node.js environments that not fully supports es2015, fullstore could be used with:

var fullstore = require('fullstore/legacy');

Related

  • 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

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free