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

Readme

Keywords

none

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