larvitutils
Advanced tools
Comparing version 1.0.2 to 1.0.3
{ | ||
"name": "larvitutils", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Misc utils", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -75,1 +75,27 @@ [![Build Status](https://travis-ci.org/larvit/larvitutils.svg)](https://travis-ci.org/larvit/larvitutils) [![Dependencies](https://david-dm.org/larvit/larvitutils.svg)](https://david-dm.org/larvit/larvitutils.svg) | ||
``` | ||
## Instances | ||
Just a very simple object intended to keep instances of objects across moduels. | ||
file 1: | ||
```javascript | ||
const utils = require('larvitutils'); | ||
let foo; | ||
function Foo() {} | ||
foo = new Foo(); | ||
foo.bar = 'baz'; | ||
utils.instances.foo = foo; | ||
``` | ||
file 2: | ||
```javascript | ||
const utils = require('larvitutils'), | ||
foo = utils.instances.foo; | ||
console.log(foo.bar); // 'baz' | ||
``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11920
101