Installation
npm install sip-importer
in your project.
Usage
Wherever you want to use your sip modules, require('sip-importer')
. This is an object containing all of your sip modules.
For example, imagine I had installed the isNumber
sip and wanted to use it in my project:
const sips = console // true
While that's nice, it isn't ideal calling sips
every time. Destructuring to the rescue! This code brings in isNumber
as its own variable:
const isNumber = console // true