Skip to content

Releases: johnwquarles/mirrarray

2.0.0

30 Sep 22:19
Compare
Choose a tag to compare

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.

v1.0.0

12 Sep 02:15
Compare
Choose a tag to compare

Initial release!