{"_id":"typewise","_rev":"101364","name":"typewise","description":"Typewise-structured sorting for arbitrarily complex data structures","dist-tags":{"latest":"1.0.3"},"maintainers":[{"name":"deanlandolt","email":""}],"time":{"modified":"2021-06-03T10:35:19.000Z","created":"2013-04-21T05:21:02.608Z","1.0.3":"2015-06-19T21:12:47.670Z","1.0.2":"2015-05-14T09:22:10.112Z","1.0.1":"2015-05-11T19:58:45.738Z","1.0.0":"2015-05-11T19:46:55.520Z","0.8.2":"2015-03-18T14:02:56.554Z","0.8.1":"2015-03-16T03:47:47.872Z","0.7.0":"2013-11-26T22:11:02.574Z","0.6.0":"2013-09-23T20:15:09.355Z","0.5.0":"2013-06-21T09:09:13.136Z","0.4.0":"2013-04-22T01:57:05.845Z","0.3.0":"2013-04-21T05:21:02.608Z"},"users":{"owaz":true},"author":{"name":"Dean Landolt","email":"dean@deanlandolt.com"},"repository":{"type":"git","url":"git+https://github.com/deanlandolt/typewise.git"},"versions":{"1.0.3":{"name":"typewise","version":"1.0.3","description":"Typewise-structured sorting for arbitrarily complex data structures","main":"index.js","scripts":{"test":"tape test | faucet"},"repository":{"type":"git","url":"git+https://github.com/deanlandolt/typewise.git"},"keywords":["typewise","types","compare","sort","order","collation","complex","structures","leveldb","indexeddb","keyvalue"],"author":{"name":"Dean Landolt","email":"dean@deanlandolt.com"},"license":"MIT","bugs":{"url":"https://github.com/deanlandolt/bytewise/issues"},"homepage":"https://github.com/deanlandolt/typewise","dependencies":{"typewise-core":"^1.2.0"},"devDependencies":{"faucet":"0.0.1","tape":"^1.0.0"},"gitHead":"04bebe075153d4e23e6960c0524dfe60b4623af7","_id":"typewise@1.0.3","_shasum":"1067936540af97937cc5dcf9922486e9fa284651","_from":".","_npmVersion":"2.11.1","_nodeVersion":"0.10.35","_npmUser":{"name":"deanlandolt","email":"dean@deanlandolt.com"},"maintainers":[{"name":"deanlandolt","email":""}],"dist":{"shasum":"1067936540af97937cc5dcf9922486e9fa284651","size":2178,"noattachment":false,"key":"/typewise/-/typewise-1.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/typewise/download/typewise-1.0.3.tgz"},"directories":{},"publish_time":1434748367670,"_cnpm_publish_time":1434748367670,"_hasShrinkwrap":false},"1.0.2":{"name":"typewise","version":"1.0.2","description":"Typewise-structured sorting for arbitrarily complex data structures","main":"index.js","scripts":{"test":"tape test | faucet"},"repository":{"type":"git","url":"https://github.com/deanlandolt/typewise.git"},"keywords":["typewise","types","compare","sort","order","collation","complex","structures","leveldb","indexeddb","keyvalue"],"author":{"name":"Dean Landolt","email":"dean@deanlandolt.com"},"license":"MIT","bugs":{"url":"https://github.com/deanlandolt/bytewise/issues"},"homepage":"https://github.com/deanlandolt/typewise","dependencies":{"typewise-core":"^1.1"},"devDependencies":{"faucet":"0.0.1","tape":"^1.0"},"gitHead":"6d188a4ae6dae81a9f78a497decec16562179b9a","_id":"typewise@1.0.2","_shasum":"2a7e98be33416492844148a2264359cbb9fef1c1","_from":".","_npmVersion":"2.7.4","_nodeVersion":"0.12.2","_npmUser":{"name":"deanlandolt","email":"dean@deanlandolt.com"},"maintainers":[{"name":"deanlandolt","email":""}],"dist":{"shasum":"2a7e98be33416492844148a2264359cbb9fef1c1","size":2175,"noattachment":false,"key":"/typewise/-/typewise-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/typewise/download/typewise-1.0.2.tgz"},"directories":{},"publish_time":1431595330112,"_cnpm_publish_time":1431595330112,"_hasShrinkwrap":false},"1.0.1":{"name":"typewise","version":"1.0.1","description":"Typewise-structured sorting for arbitrarily complex data structures","main":"index.js","scripts":{"test":"tape test | faucet"},"repository":{"type":"git","url":"https://github.com/deanlandolt/typewise.git"},"keywords":["typewise","types","compare","sort","order","collation","complex","structures","leveldb","indexeddb","keyvalue"],"author":{"name":"Dean Landolt","email":"dean@deanlandolt.com"},"license":"MIT","dependencies":{"typewise-core":"^1.1"},"devDependencies":{"faucet":"0.0.1","tape":"^1.0"},"gitHead":"fe8bef6993027363e573efcb9fdbda190cfdeb3d","bugs":{"url":"https://github.com/deanlandolt/typewise/issues"},"homepage":"https://github.com/deanlandolt/typewise","_id":"typewise@1.0.1","_shasum":"947ee43e0baeba40dc559671537ac7071fc3bf94","_from":".","_npmVersion":"2.7.4","_nodeVersion":"0.12.2","_npmUser":{"name":"deanlandolt","email":"dean@deanlandolt.com"},"maintainers":[{"name":"deanlandolt","email":""}],"dist":{"shasum":"947ee43e0baeba40dc559671537ac7071fc3bf94","size":2370,"noattachment":false,"key":"/typewise/-/typewise-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/typewise/download/typewise-1.0.1.tgz"},"directories":{},"publish_time":1431374325738,"_cnpm_publish_time":1431374325738,"_hasShrinkwrap":false},"1.0.0":{"name":"typewise","version":"1.0.0","description":"Typewise-structured sorting for arbitrarily complex data structures","main":"index.js","scripts":{"test":"tape test | faucet"},"repository":{"type":"git","url":"https://github.com/deanlandolt/typewise.git"},"keywords":["typewise","types","compare","sort","order","collation","complex","structures","leveldb","indexeddb","keyvalue"],"author":{"name":"Dean Landolt","email":"dean@deanlandolt.com"},"license":"MIT","dependencies":{"typewise-core":"^1.1","buffertools":"^2.1"},"optionalDependencies":{"buffertools":"^2.1"},"devDependencies":{"faucet":"0.0.1","tape":"^1.0"},"gitHead":"f1b22d3ac27e0795542496af126bffcd403294e8","bugs":{"url":"https://github.com/deanlandolt/typewise/issues"},"homepage":"https://github.com/deanlandolt/typewise","_id":"typewise@1.0.0","_shasum":"d3ddf3a2b015c2e45ca82da552ac26370cfba033","_from":".","_npmVersion":"2.7.4","_nodeVersion":"0.12.2","_npmUser":{"name":"deanlandolt","email":"dean@deanlandolt.com"},"maintainers":[{"name":"deanlandolt","email":""}],"dist":{"shasum":"d3ddf3a2b015c2e45ca82da552ac26370cfba033","size":2336,"noattachment":false,"key":"/typewise/-/typewise-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/typewise/download/typewise-1.0.0.tgz"},"directories":{},"publish_time":1431373615520,"_cnpm_publish_time":1431373615520,"_hasShrinkwrap":false},"0.8.2":{"name":"typewise","version":"0.8.2","description":"Typewise-structured sorting for arbitrarily complex data structures","main":"typewise.js","dependencies":{"bops":"~0.1","buffertools":"~2.1"},"optionalDependencies":{"buffertools":"~2.1"},"devDependencies":{"tape":"~1.0"},"scripts":{"test":"tape test"},"repository":{"type":"git","url":"https://github.com/deanlandolt/typewise.git"},"keywords":["sort","order","collation","leveldb","indexeddb","keyvalue"],"author":{"name":"Dean Landolt","email":"dean@deanlandolt.com"},"license":"MIT","testling":{"files":"test/*.js","browsers":["ie/8..latest","firefox/17..latest","firefox/nightly","chrome/22..latest","chrome/canary","opera/12..latest","opera/next","safari/5.1..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2..latest"]},"gitHead":"3ef71f256097034d219aa819cd2645e6a9154b5b","bugs":{"url":"https://github.com/deanlandolt/typewise/issues"},"homepage":"https://github.com/deanlandolt/typewise","_id":"typewise@0.8.2","_shasum":"6c8a27a7fd3bd7a0a7647beeb9eb8a6aaf377c1b","_from":".","_npmVersion":"2.7.0","_nodeVersion":"0.10.35","_npmUser":{"name":"deanlandolt","email":"dean@deanlandolt.com"},"maintainers":[{"name":"deanlandolt","email":""}],"dist":{"shasum":"6c8a27a7fd3bd7a0a7647beeb9eb8a6aaf377c1b","size":5852,"noattachment":false,"key":"/typewise/-/typewise-0.8.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/typewise/download/typewise-0.8.2.tgz"},"directories":{},"publish_time":1426687376554,"_cnpm_publish_time":1426687376554,"_hasShrinkwrap":false},"0.8.1":{"name":"typewise","version":"0.8.1","description":"Typewise-structured sorting for arbitrarily complex data structures","main":"typewise.js","dependencies":{"bops":"~0.1","buffertools":"~1"},"optionalDependencies":{"buffertools":"~1"},"devDependencies":{"tape":"~1.0"},"scripts":{"test":"tape test"},"repository":{"type":"git","url":"https://github.com/deanlandolt/typewise.git"},"keywords":["sort","order","collation","leveldb","indexeddb","keyvalue"],"author":{"name":"Dean Landolt","email":"dean@deanlandolt.com"},"license":"MIT","testling":{"files":"test/*.js","browsers":["ie/8..latest","firefox/17..latest","firefox/nightly","chrome/22..latest","chrome/canary","opera/12..latest","opera/next","safari/5.1..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2..latest"]},"gitHead":"a88946cf3a731b1f2f8a08ee62eae11995d3570e","bugs":{"url":"https://github.com/deanlandolt/typewise/issues"},"homepage":"https://github.com/deanlandolt/typewise","_id":"typewise@0.8.1","_shasum":"58cc1172985930752543fc879a0e5918390f3ff6","_from":".","_npmVersion":"2.7.0","_nodeVersion":"0.10.35","_npmUser":{"name":"deanlandolt","email":"dean@deanlandolt.com"},"maintainers":[{"name":"deanlandolt","email":""}],"dist":{"shasum":"58cc1172985930752543fc879a0e5918390f3ff6","size":5852,"noattachment":false,"key":"/typewise/-/typewise-0.8.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/typewise/download/typewise-0.8.1.tgz"},"directories":{},"publish_time":1426477667872,"_cnpm_publish_time":1426477667872,"_hasShrinkwrap":false},"0.7.0":{"name":"typewise","version":"0.7.0","description":"Typewise structured sorting for arbirarily complex data structures","main":"typewise.js","dependencies":{"bops":"~0.0","ses":"~0.0","esprima":"~1","escodegen":"~0.0","buffertools":"~1"},"optionalDependencies":{"ses":"~0.0","esprima":"~1","escodegen":"~0.0","buffertools":"~1"},"browser":{"./ses":false},"devDependencies":{"tape":"~1.0.4"},"scripts":{"test":"tap test/"},"repository":{"type":"git","url":"https://github.com/deanlandolt/typewise.git"},"keywords":["sort","order","collation","leveldb","indexeddb","couchdb"],"author":{"name":"Dean Landolt","email":"dean@deanlandolt.com"},"license":"MIT","readmeFilename":"README.md","testling":{"files":"test/*.js","browsers":["ie/8..latest","firefox/17..latest","firefox/nightly","chrome/22..latest","chrome/canary","opera/12..latest","opera/next","safari/5.1..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2..latest"]},"bugs":{"url":"https://github.com/deanlandolt/typewise/issues"},"_id":"typewise@0.7.0","dist":{"shasum":"24779f806710e861f1a39f95d3f10184dce550e8","size":6322,"noattachment":false,"key":"/typewise/-/typewise-0.7.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/typewise/download/typewise-0.7.0.tgz"},"_from":"./","_npmVersion":"1.3.8","_npmUser":{"name":"deanlandolt","email":"dean@deanlandolt.com"},"maintainers":[{"name":"deanlandolt","email":""}],"directories":{},"publish_time":1385503862574,"_cnpm_publish_time":1385503862574,"_hasShrinkwrap":false},"0.6.0":{"name":"typewise","version":"0.6.0","description":"Typewise structured sorting for arbirarily complex data structures","main":"typewise.js","dependencies":{"es6-shim":"~0.8","bops":"~0.0","ses":"~0.0","esprima":"~1","escodegen":"~0.0","buffertools":"~1"},"optionalDependencies":{"ses":"~0.0","esprima":"~1","escodegen":"~0.0","buffertools":"~1"},"browser":{"./ses":false},"devDependencies":{"tape":"~1.0.4"},"scripts":{"test":"tap test/"},"repository":{"type":"git","url":"https://github.com/deanlandolt/typewise.git"},"keywords":["sort","order","collation","leveldb","indexeddb","couchdb"],"author":{"name":"Dean Landolt","email":"dean@deanlandolt.com"},"license":"MIT","readmeFilename":"README.md","testling":{"files":"test/*.js","browsers":["ie/8..latest","firefox/17..latest","firefox/nightly","chrome/22..latest","chrome/canary","opera/12..latest","opera/next","safari/5.1..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2..latest"]},"bugs":{"url":"https://github.com/deanlandolt/typewise/issues"},"_id":"typewise@0.6.0","dist":{"shasum":"7f1c00c4edd7a8e48cf28928c3cc369ba61edc3d","size":6358,"noattachment":false,"key":"/typewise/-/typewise-0.6.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/typewise/download/typewise-0.6.0.tgz"},"_from":"./","_npmVersion":"1.2.30","_npmUser":{"name":"deanlandolt","email":"dean@deanlandolt.com"},"maintainers":[{"name":"deanlandolt","email":""}],"directories":{},"publish_time":1379967309355,"_cnpm_publish_time":1379967309355,"_hasShrinkwrap":false},"0.5.0":{"name":"typewise","version":"0.5.0","description":"Typewise structured sorting for arbirarily complex data structures","main":"typewise.js","dependencies":{"es6-shim":"~0.8","ses":"*","esprima":"~1","escodegen":"*","buffertools":"*"},"optionalDependencies":{"ses":"*","esprima":"~1","escodegen":"*","buffertools":"*"},"devDependencies":{"tap":"*"},"scripts":{"test":"tap test/"},"repository":{"type":"git","url":"https://github.com/deanlandolt/typewise.git"},"keywords":["sort","order","collation","leveldb","indexeddb","couchdb"],"author":{"name":"Dean Landolt","email":"dean@deanlandolt.com"},"license":"MIT","readmeFilename":"README.md","bugs":{"url":"https://github.com/deanlandolt/typewise/issues"},"_id":"typewise@0.5.0","dist":{"shasum":"20e7df605acd6d78e59bdda04202404a3ea88983","size":4829,"noattachment":false,"key":"/typewise/-/typewise-0.5.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/typewise/download/typewise-0.5.0.tgz"},"_from":"./","_npmVersion":"1.2.30","_npmUser":{"name":"deanlandolt","email":"dean@deanlandolt.com"},"maintainers":[{"name":"deanlandolt","email":""}],"directories":{},"publish_time":1371805753136,"_cnpm_publish_time":1371805753136,"_hasShrinkwrap":false},"0.4.0":{"name":"typewise","version":"0.4.0","description":"Typewise structured sorting for arbirarily complex data structures","main":"typewise.js","dependencies":{"es6-shim":"*","ses":"*","esprima":"~1","escodegen":"*","buffertools":"*"},"optionalDependencies":{"ses":"*","esprima":"~1","escodegen":"*","buffertools":"*"},"devDependencies":{"tap":"*"},"scripts":{"test":"tap test/"},"repository":{"type":"git","url":"https://github.com/deanlandolt/typewise.git"},"keywords":["sort","order","collation","leveldb","indexeddb","couchdb"],"author":{"name":"Dean Landolt","email":"dean@deanlandolt.com"},"license":"MIT","readmeFilename":"README.md","_id":"typewise@0.4.0","dist":{"shasum":"bb510568cc8016e44850b876ccf5d6bff6ec2f4f","size":4790,"noattachment":false,"key":"/typewise/-/typewise-0.4.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/typewise/download/typewise-0.4.0.tgz"},"_from":"./","_npmVersion":"1.2.14","_npmUser":{"name":"deanlandolt","email":"dean@deanlandolt.com"},"maintainers":[{"name":"deanlandolt","email":""}],"directories":{},"publish_time":1366595825845,"_cnpm_publish_time":1366595825845,"_hasShrinkwrap":false},"0.3.0":{"name":"typewise","version":"0.3.0","description":"Typewise structured sorting for arbirarily complex data structures","main":"typewise.js","dependencies":{"es6-shim":"~0.6","ses":"*","esprima":"~1","escodegen":"*","buffertools":"*"},"optionalDependencies":{"ses":"*","esprima":"~1","escodegen":"*","buffertools":"*"},"devDependencies":{"tap":"*"},"scripts":{"test":"tap test/"},"repository":{"type":"git","url":"https://github.com/deanlandolt/typewise.git"},"keywords":["sort","order","collation","leveldb","indexeddb","couchdb"],"author":{"name":"Dean Landolt","email":"dean@deanlandolt.com"},"license":"MIT","readmeFilename":"README.md","_id":"typewise@0.3.0","dist":{"shasum":"86b4f3386e167e64c6af5e166057a1b5c5e22411","size":4556,"noattachment":false,"key":"/typewise/-/typewise-0.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/typewise/download/typewise-0.3.0.tgz"},"_from":"./","_npmVersion":"1.2.14","_npmUser":{"name":"deanlandolt","email":"dean@deanlandolt.com"},"maintainers":[{"name":"deanlandolt","email":""}],"directories":{},"publish_time":1366521662608,"_cnpm_publish_time":1366521662608,"_hasShrinkwrap":false}},"readme":"# typewise\n\nTypewise structured sorting for arbirarily complex data structures.\n\n[![build status](https://travis-ci.org/deanlandolt/typewise.svg?branch=master)](https://travis-ci.org/deanlandolt/typewise)\n\nThis library defines and implements the collation used by the [bytewise](https://github.com/deanlandolt/bytewise-core) encoding library.\n\nNOTE: the core typewise sorting functionality has been completely rewritten and moved to [typewise-core](https://github.com/deanlandolt/typewise-core). This library extends the data structures and comparators available to support more exotic types like ordered maps and sets, and shortlex-ordered tuples and records.\n\n\n## Type system\n\nIn order to properly express the rules for sorting and equality for a wide range of structures `typewise` defines a simple type system for controlling these properties across a range of data structures.\n\nA `typewise` type profile can be provide when creating a bytewise codec to control encoding and decoding behavior for specific types. Types may also contain high and low sentinal values that can be used to create `range` types which may be impossible be instantiate directly as instances.\n\nFor example, dates have no valid infinatary instances, but something analogous to the \"minimum\" and \"maximum\" dates is a useful construct for defining date intervals.\n\n\n## Issues\n\nIssues should be reported [here](https://github.com/deanlandolt/bytewise/issues).\n\n\n## License\n\n[MIT](http://deanlandolt.mit-license.org/)\n","_attachments":{},"homepage":"https://github.com/deanlandolt/typewise","bugs":{"url":"https://github.com/deanlandolt/bytewise/issues"},"license":"MIT"}