sip-importer
v1.0.0
Published
A simple way to import your sip_modules
Downloads
2
Readme
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 = require('sip-importer')
console.log(sips.isNumber(7)) // 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} = require('sip-importer')
console.log(isNumber(7)) // true