Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including annozip with all npm packages installed. Try it out:

var annozip = require("annozip")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

annozip v0.2.6

Zips data into structure

build status

annozip - Zips data into structure

´annozip´ provides utilities that make it easier to deal with ´zip´ data structures. Consider the following examples:

var zip = require('annozip');

var a = [0, 1, 2];
var b = ['a', 'b', 'c', 'd'];
var c = zip(a, b); // [[0, 'a'], [1, 'b'], [2, 'c']]

var o = {name: 'Joe', age: 123}
var ozip = zip(o); // [['name', 'Joe'], ['age', 123]]

var o2 = zip.toObject(ozip); // {name: 'Joe', age: 123}


MIT. See LICENSE for more details.

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free