sip-importer

1.0.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i sip-importer

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

1.04 kB

Total Files

3

Last publish

Collaborators

  • alexarena