Skip to content

Omnipresent: the npm module that lets you access your common logic everywhere🧞‍♀️. This library could be a lot better, although it's not about the code, it's about the philosophy. Disclaimer: I don't use this code myself, PRs always welcome though😁.

Notifications You must be signed in to change notification settings

msteckyefantis/omnipresent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Omnipresent: the npm module that lets you access your common logic everywhere🧞‍♀️. This library could be a lot better, although it's not about the code, it's about the philosophy. Disclaimer: I don't use this code myself, PRs always welcome though😁.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published