Node Instances Mixin for use with MixWith
npm install deployable-mixin-instances --save
yarn add deployable-mixin-instances
const mix = require('mixwith').mix
const MixinInstances = require('deployable-mixin-instances')
class Some extends mix((class {})).with(MixinInstances) {}
let default = Some.singleton
Get an exiting instance, can return undefined
Create a new instance
Fetch an existing or create a new instance
Create an instance, erroring if it already exists
Clear all instance stored in the class
deployable-mixin-instances is released under the MIT license.
Copyright 2016 Matt Hoyle