This package has been deprecated

Author message:

Doesn't work

mutatable
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

Mutatable Travis CI Build Status

A mutatable value that can still be changed after being exported.

NPM Badge

Install

npm install mutatable

Usage

const Mutatable = require("mutatable");
const myVal = new Mutatable();

someAsyncOperation().then(res => (myVal.exportable = res));

module.exports = myVal.exportable;

API

class Mutatable(initialData?)

initialData

Type: any

The intial data to set.

instance Mutatable

exportable

Type: any

The value which can be exported and modified.

Package Sidebar

Install

npm i mutatable

Weekly Downloads

2

Version

1.0.0

License

MIT

Unpacked Size

3.75 kB

Total Files

6

Last publish

Collaborators

  • richienb