5no-global

1.0.2 • Public • Published

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

Dependencies (0)

    Dev Dependencies (15)

    Package Sidebar

    Install

    npm i 5no-global

    Weekly Downloads

    1

    Version

    1.0.2

    License

    MIT

    Unpacked Size

    6.1 kB

    Total Files

    12

    Last publish

    Collaborators

    • reb2020