omnipresent

1.0.5 • Public • Published

Omnipresent🧞‍♀️

npm version Build Status

The npm module that lets you access your common logic everywhere

Example:

Setup your global logic in any file.
'use strict';
 
const { addGlobally } = require( 'omnipresent' );
 
 
addGlobally({
 
    usefulFunction: x => (2 * x),
 
    utils: require( './utils' ),
});
Now in any file you can access your global logic by doing the following:
'use strict';
 
const { usefulFunction } = require( 'omnipresent' );
 
 
console.log( usefulFunction( 2 ) ); // logs 4

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.51latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.51
1.0.41
1.0.31
1.0.20
1.0.10
1.0.01

Package Sidebar

Install

npm i omnipresent

Weekly Downloads

4

Version

1.0.5

License

BSD-3-Clause

Unpacked Size

1.74 kB

Total Files

3

Last publish

Collaborators

  • npm.m.stecky.efantis