annozip
Zips data into structure
Last updated 6 years ago by bebraw .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install annozip 
SYNC missed versions from official npm registry.

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}

License

MIT. See LICENSE for more details.

Current Tags

  • 0.2.6                                ...           latest (6 years ago)

7 Versions

  • 0.2.6                                ...           6 years ago
  • 0.2.5                                ...           6 years ago
  • 0.2.4                                ...           7 years ago
  • 0.2.3                                ...           7 years ago
  • 0.2.2                                ...           7 years ago
  • 0.2.1                                ...           7 years ago
  • 0.2.0                                ...           7 years ago
Maintainers (1)
Downloads
Today 1
This Week 4
This Month 24
Last Day 0
Last Week 13
Last Month 34
Dependencies (2)
Dev Dependencies (4)

Copyright 2014 - 2017 © taobao.org |