5no-global
v1.0.2
Published
Global variables manager
Downloads
11
Maintainers
Readme
Global variables manager
Install
5no-global requires Node version 8 or above.
npm install --save 5no-global
Doc
Global object has methods
Global(namespace).set(name, data)
Global(namespace).get(name, defaultValue)
Global(namespace).getAll()
Examples
const Global = require('5no-global')
Global('5no').set('test', 100)
console.log(Global('5no').get('test'))
License
MIT Licensed, Copyright (c) 2018 Aleksandr Sokol