Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

larvitutils

Package Overview
Dependencies
Maintainers
1
Versions
185
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

larvitutils - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

2

package.json
{
"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'
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc