Skip to content

2.0.0

Latest
Compare
Choose a tag to compare
@johnwquarles johnwquarles released this 30 Sep 22:19

Version 2.0.0 changes the way that mirrarray is exported via commonjs and as a global object. To this point it had been exporting the entire module in either of these cases, meaning that you'd have to call .default to get to the actual function.

From now, you'll be able to use like so:

commonjs:

var mirrarray = require("mirrarray");
 
var keymirror = mirrarray(['this', 'that', 'another']);

Or if you include /dist/mirrarray.js as a script tag, you can just use the global function mirrarray.

Usage via es6 module syntax has not been affected.