1.0.0 • Published 6 years ago

sip-importer v1.0.0

Weekly downloads
3
License
MIT
Repository
-
Last release
6 years ago

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