lib/store.js
function Store(options) {
  if (!(this instanceof Store)) {
    return new Store(options);
  }

  if (typeof options === 'string') {
    options = { name: options };
  }
  options = options || {};
  var name = options.name || 'macros';
  this.store = options.store || new utils.Store(name);
}
function Store(options) {
  if (!(this instanceof Store)) {
    return new Store(options);
  }

  if (typeof options === 'string') {
    options = { name: options };
  }
  options = options || {};
  var name = options.name || 'macros';
  this.store = options.store || new utils.Store(name);
}
function Store ( options ) { if ( ! ( this instanceof Store ) ) { return new Store ( options ) ; } if ( typeof options === 'string' ) { options = { name : options } ; } options = options || { } ; var name = options . name || 'macros' ; this . store = options . store || new utils . Store ( name ) ; }
Initialize a new `Store` with the given `options`.

```js
var macroStore = new Store();
//=> '~/data-store/macros.json'

var macroStore = new Store({name: 'abc'});
//=> '~/data-store/abc.json'
```

@param  {Object} `options`
@param {String} `options.name` Name of the json file to use for storing macros. Defaults to 'macros'
@param {Object} `options.store` Instance of [data-store][] to use. Allows complete control over where the store is located.
@api public
Initialize a new Store with the given options .