omnipresent
1.0.5 • Public • Published Omnipresent🧞♀️

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
Version | Downloads (Last 7 Days) | Tag |
---|
1.0.5 | 1 | latest |
Version History
Package Sidebar
Install
Weekly Downloads