The module exports a constructor.
var Mase = require('mase');
var db = new Mase(string name, array data)
Memory dbs with the same name
share memory.
It can take an array of data
as a second or first argument.
If so, data
is upserted into the db by only using each
document's _id
as a selector.
function Mase([string name, array data])
arguments
name
type string, name for the collectiondata
type array to insert in memory dbdefaults
name
to a random 24 length string using [A-Za-z0-9]
charactersdata
name
array if there was onename
it wasn'treturns a new instance
instance properties
store
array of data of the instance