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 localism with all npm packages installed. Try it out:

var localism = require("localism")

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

localism v0.4.0

Tools for speedy, efficient local development.


Local development tools. Not for production, just to make you more PRODUCTIVE.


npm install -g localism
npm install --save localism

Getting Started

Just require the module, every method lives at the top level.

const { simpleCache } = require('localism');

const cacheFn = simpleCache({fn: myAsyncFunction });


simpleCache({fn, [transformFromFile, fileNameGenerator, cacheDirectoryPath, uuidFileName]})

Wraps a given method to create a cache that writes to the local file system. The huge local development advantage is the ability to read and review responses, while keeping the cache from relying on what's in memory.

// This is made for async functions

const cachedFn = simpleCache({fn: myAsyncFunction, cacheDirectoryPath: 'tmp/local/cache'});

const response = await cachedFn({red: 2, green: 6, blue: false});

// The above response will be saved to a file and then accessed from there on future calls

Contribution Guidelines

Fork the respository and install all the dependencies:

npm install

Make sure to run the unit tests (and lint) before committing. Obviously, add to the tests as you make changes:

npm run test

For watch:

npm run test:watch
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