Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from mkay581/master
few small updates
- Loading branch information
Showing
3 changed files
with
3 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# singleton-require | ||
When you need to a single reference to a global singleton (mongoose, config, cache) shared amongst all npm modules, useful for plugin systems | ||
When you need a single reference to a global singleton (mongoose, config, cache) shared amongst all npm modules, useful for plugin systems | ||
|
||
# Usage | ||
Instead of calling require directly, route it through singleton-require to guarentee only one instance of the module is loaded and you have a reference to it | ||
Instead of calling require directly, route it through singleton-require to guarantee only one instance of the module is loaded and you have a reference to it | ||
|
||
var config = require('singleton-require')('config'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters