module-singleton

2.0.1 • Public • Published

SYNOPSIS

Prevent multiple copies of your module loaded into application.

Build Status

For example, module1 would be loaded twice when the dependency graph looks like this:

--main-module
 --module1
 --module2
  --module1

USAGE

Require module-singleton at the top of your module, pass package.json.

require('module-singleton')(require('./package.json'));

LICENSE

Apache License, Version 2.0

install

npm i module-singleton

Downloadsweekly downloads

17

version

2.0.1

license

Apache-2.0

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability