{"_id":"gearjs","_rev":"31-c48639909469338bf2ebafbe147e6136","name":"gearjs","description":"utils for nodejs","dist-tags":{"latest":"0.0.12"},"versions":{"0.0.1":{"name":"gearjs","version":"0.0.1","description":"utils for nodejs","main":"gear.js","repository":{"type":"git","url":"https://github.com/aslinwang/gearjs.git"},"keywords":["utils","async"],"scripts":{"test":"mocha"},"author":{"name":"aslinwang"},"license":"MIT","bugs":{"url":"https://github.com/aslinwang/gearjs/issues"},"dependencies":{"underscore":"*"},"devDependencies":{"q":"~1.0.1"},"_id":"gearjs@0.0.1","dist":{"shasum":"1cd227b1ae9bb36fe6bbf298cc714d1f6e3db9cd","tarball":"https://registry.npmjs.org/gearjs/-/gearjs-0.0.1.tgz","integrity":"sha512-t7zzV7uYcaWlAjqUIKtJssh8W/guELsyxfJCgV3zc3UQW1VjkotMkT4/I7tSYJ1cxuWp4G4IZrx0Heb92W+CmA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDbk6QPQqEYOu2+nnpNfC7wsm3jYtI0AxqRxtZI9gOKzwIhAI4Vd9zER7oSq1NB4hC6ibc/WL6+Oi0QGQDZ8Uk0NkEM"}]},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"aslinwang","email":"dreamjet.wang@gmail.com"},"maintainers":[{"name":"aslinwang","email":"dreamjet.wang@gmail.com"}]},"0.0.2":{"name":"gearjs","version":"0.0.2","description":"utils for nodejs","main":"gear.js","repository":{"type":"git","url":"https://github.com/aslinwang/gearjs.git"},"keywords":["utils","async"],"scripts":{"test":"mocha"},"author":{"name":"aslinwang"},"license":"MIT","bugs":{"url":"https://github.com/aslinwang/gearjs/issues"},"dependencies":{"underscore":"*"},"devDependencies":{"q":"~1.0.1"},"_id":"gearjs@0.0.2","dist":{"shasum":"b6d8beb5b9941a3d3d3fbcceebad6018dca1284b","tarball":"https://registry.npmjs.org/gearjs/-/gearjs-0.0.2.tgz","integrity":"sha512-lq0fng/MA3fKgahwN64JAWYsX/q67YTx3DXDfbJwGaDvz7n2SER1bpxZzy/1FN6iU5Kp6iKvsHUFGnzQlDK5Uw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCZsSji5AWaSwckDu85stPQMRe4Y6tm91TxGEaQ4hr4+wIhAO8bHqZ0j9VAArXDQbN9O5fCc8vfWWFVuEc3xyQqggH5"}]},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"aslinwang","email":"dreamjet.wang@gmail.com"},"maintainers":[{"name":"aslinwang","email":"dreamjet.wang@gmail.com"}]},"0.0.3":{"name":"gearjs","version":"0.0.3","description":"utils for nodejs","main":"gear.js","repository":{"type":"git","url":"https://github.com/aslinwang/gearjs.git"},"keywords":["utils","async"],"scripts":{"test":"mocha"},"author":{"name":"aslinwang"},"license":"MIT","bugs":{"url":"https://github.com/aslinwang/gearjs/issues"},"dependencies":{"underscore":"*","q":"~1.0.1"},"devDependencies":{},"_id":"gearjs@0.0.3","dist":{"shasum":"7425127763bcc7378b9c178da3c121dbd7e53d8c","tarball":"https://registry.npmjs.org/gearjs/-/gearjs-0.0.3.tgz","integrity":"sha512-hMBJSYx/GkVT91O+YJrB8frMShHUinpL3/ZP+5QVrpS5+6RU5s4G9W9SWZcqS1/4xv4/++o9astWeC/VEKCCUw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCoFByf4ZcFrPP6Um4lsU3Nh5Hi6eB/eQOBj/j8zkYlXQIhAMvM1xW1NEGYeIPEm6KkhFBPzviHwYqDc/DqJ1NxQHmf"}]},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"aslinwang","email":"dreamjet.wang@gmail.com"},"maintainers":[{"name":"aslinwang","email":"dreamjet.wang@gmail.com"}]},"0.0.4":{"name":"gearjs","version":"0.0.4","description":"utils for nodejs","main":"gear.js","repository":{"type":"git","url":"https://github.com/aslinwang/gearjs.git"},"keywords":["utils","async"],"scripts":{"test":"mocha"},"author":{"name":"aslinwang"},"license":"MIT","bugs":{"url":"https://github.com/aslinwang/gearjs/issues"},"dependencies":{"underscore":"*","q":"~1.0.1"},"devDependencies":{},"_id":"gearjs@0.0.4","dist":{"shasum":"d09e7dabb591bc52651b9872aed886df2dae023f","tarball":"https://registry.npmjs.org/gearjs/-/gearjs-0.0.4.tgz","integrity":"sha512-oqctfHl+9lyjUA/DZ+5TK7y0WLbQlB1ssGEKY0KKFti+r+Uhzykg5FgkSP2FkKzGn9BqMW1qKAxEXXo0snlnXA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBfkebBcquZ2lHuPs5R7jHz1Ez0yzI3UajH7bcQLjCCfAiEA7V4U1GJXV0qkfYye4FLJRQWGbvJZYWuhKWguQOnfInc="}]},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"aslinwang","email":"dreamjet.wang@gmail.com"},"maintainers":[{"name":"aslinwang","email":"dreamjet.wang@gmail.com"}]},"0.0.5":{"name":"gearjs","version":"0.0.5","description":"utils for nodejs","main":"gear.js","repository":{"type":"git","url":"https://github.com/aslinwang/gearjs.git"},"keywords":["utils","async"],"scripts":{"test":"mocha"},"author":{"name":"aslinwang"},"license":"MIT","bugs":{"url":"https://github.com/aslinwang/gearjs/issues"},"dependencies":{"underscore":"*","q":"~1.0.1"},"devDependencies":{},"_id":"gearjs@0.0.5","dist":{"shasum":"8125ab9ae2da5bd7ed6675cae97a2cb058960fb4","tarball":"https://registry.npmjs.org/gearjs/-/gearjs-0.0.5.tgz","integrity":"sha512-bDbS5ILXLomMPytdhksbc/Hhc71buL2xjKuZiYIlM7ywb/qkwLzNRVLj+AoRiQrMMCRvGgY5nsdyFbKW4TcM0w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDANOvhHWdCEy1yB/nksrYJaA1avoo8bHNYW+ZtUFyDwAIhAL2sqHnjVloaS5TfnDrfK5Ubxh5aI6sw8b2XB2H81X/D"}]},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"aslinwang","email":"dreamjet.wang@gmail.com"},"maintainers":[{"name":"aslinwang","email":"dreamjet.wang@gmail.com"}]},"0.0.6":{"name":"gearjs","version":"0.0.6","description":"utils for nodejs","main":"gear.js","repository":{"type":"git","url":"https://github.com/aslinwang/gearjs.git"},"keywords":["utils","async"],"scripts":{"test":"mocha"},"author":{"name":"aslinwang"},"license":"MIT","bugs":{"url":"https://github.com/aslinwang/gearjs/issues"},"dependencies":{"underscore":"*","q":"~1.0.1"},"devDependencies":{},"homepage":"https://github.com/aslinwang/gearjs","_id":"gearjs@0.0.6","dist":{"shasum":"042b5c99f89bf056cd1f80c23bcf4fca40cfb02c","tarball":"https://registry.npmjs.org/gearjs/-/gearjs-0.0.6.tgz","integrity":"sha512-LiBUn46OfIx6YU6VGeor0FPHfwzrZ7l9Wa8ddzAj/AGEELQCBVQqRv8o+MCsTOlGWQjfQC9JNOp9MuU1BoxV/A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDVZuZJqCkcveFGT0W72PWixFqvkM0403d9z+J5afGPmgIgaVVhWoQM1U6sQPJXjN3B1I49viYTlAyeBBcKSZqVR7I="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"aslinwang","email":"dreamjet.wang@gmail.com"},"maintainers":[{"name":"aslinwang","email":"dreamjet.wang@gmail.com"}]},"0.0.7":{"name":"gearjs","version":"0.0.7","description":"utils for nodejs","main":"gear.js","repository":{"type":"git","url":"https://github.com/aslinwang/gearjs.git"},"keywords":["utils","async"],"scripts":{"test":"mocha"},"author":{"name":"aslinwang"},"license":"MIT","bugs":{"url":"https://github.com/aslinwang/gearjs/issues"},"dependencies":{"underscore":"*","q":"~1.0.1"},"devDependencies":{},"gitHead":"3095599c73fe754f550ffab0ebf09bdb8b93c896","homepage":"https://github.com/aslinwang/gearjs","_id":"gearjs@0.0.7","_shasum":"e04026109360cc82d95144abde7f71138f1650bc","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"aslinwang","email":"dreamjet.wang@gmail.com"},"maintainers":[{"name":"aslinwang","email":"dreamjet.wang@gmail.com"}],"dist":{"shasum":"e04026109360cc82d95144abde7f71138f1650bc","tarball":"https://registry.npmjs.org/gearjs/-/gearjs-0.0.7.tgz","integrity":"sha512-BoKkXYFpn/aSWnrDiKyZTbjMqTVCO3r4ljhUZqcqFENImIJQC1EhU3rTLjQuD1wTdxx1A5jcWxNdLs8G3lNJww==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDx2SHj3aV1IWCUGU//eGY5AGuV0+fVlYL7JADCr9HongIhAOBLmQJYIOb/FmYbjTKSRMDTtwH89R7HFuqwKVuu4c9O"}]}},"0.0.8":{"name":"gearjs","version":"0.0.8","description":"utils for nodejs","main":"gear.js","repository":{"type":"git","url":"git+https://github.com/aslinwang/gearjs.git"},"keywords":["utils","async"],"scripts":{"test":"mocha"},"author":{"name":"aslinwang"},"license":"MIT","bugs":{"url":"https://github.com/aslinwang/gearjs/issues"},"dependencies":{"underscore":"*","q":"~1.0.1"},"devDependencies":{},"gitHead":"24433ec38c5628a27ad82173fde512780c4d3262","homepage":"https://github.com/aslinwang/gearjs#readme","_id":"gearjs@0.0.8","_shasum":"8c045276b73d329deae8634103eef48dbde7adbc","_from":".","_npmVersion":"2.9.1","_nodeVersion":"0.10.26","_npmUser":{"name":"aslinwang","email":"dreamjet.wang@gmail.com"},"dist":{"shasum":"8c045276b73d329deae8634103eef48dbde7adbc","tarball":"https://registry.npmjs.org/gearjs/-/gearjs-0.0.8.tgz","integrity":"sha512-pAx2ubFRrK+vIM23MgB90PJhTkX7KmqN30aCZbLXkYH818Cu+NuOek/M5w+5Dk4KbJ6dOd3hJS3h3t/ctiwbUQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDjiwP/P4D0kN5nHfJibN2NUBoUBNzEVfPsT5D+QCPlugIhAIMbi1h4jHwq5qiIvo0devIWrPif+pHcfVFTDhiTkme3"}]},"maintainers":[{"name":"aslinwang","email":"dreamjet.wang@gmail.com"}]},"0.0.9":{"name":"gearjs","version":"0.0.9","description":"utils for nodejs","main":"gear.js","repository":{"type":"git","url":"git+https://github.com/aslinwang/gearjs.git"},"keywords":["utils","async"],"scripts":{"test":"mocha"},"author":{"name":"aslinwang"},"license":"MIT","bugs":{"url":"https://github.com/aslinwang/gearjs/issues"},"dependencies":{"underscore":"*","q":"~1.0.1"},"devDependencies":{},"gitHead":"8825b9dc593a7c9386aa05c06ce6fe81d97c73a1","homepage":"https://github.com/aslinwang/gearjs#readme","_id":"gearjs@0.0.9","_shasum":"c40439290f21dda1613fdd9a1085944251c7ffe6","_from":".","_npmVersion":"2.9.1","_nodeVersion":"0.10.26","_npmUser":{"name":"aslinwang","email":"dreamjet.wang@gmail.com"},"dist":{"shasum":"c40439290f21dda1613fdd9a1085944251c7ffe6","tarball":"https://registry.npmjs.org/gearjs/-/gearjs-0.0.9.tgz","integrity":"sha512-/BreRclPdU8yK9yBtCBbonYf3drMbB2rlCxbHheFvTnu16ttbSTCpa44k6eEnq9I4GNqOxkR5c2+uSOlKeySpg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC0/dr3PFjXhwYfdzaziTExTCOF114Gq6bzceI5r910egIhANLmG70w14Dj8FCfZz5FWaIp998HSFl1uvW7iHuzW5N0"}]},"maintainers":[{"name":"aslinwang","email":"dreamjet.wang@gmail.com"}]},"0.0.10":{"name":"gearjs","version":"0.0.10","description":"utils for nodejs","main":"gear.js","repository":{"type":"git","url":"git+https://github.com/aslinwang/gearjs.git"},"keywords":["utils","async"],"scripts":{"test":"mocha"},"author":{"name":"aslinwang"},"license":"MIT","bugs":{"url":"https://github.com/aslinwang/gearjs/issues"},"dependencies":{"underscore":"*","q":"~1.0.1","lodash":"^4.16.4"},"devDependencies":{},"gitHead":"6ff57408f684a107c09a041558d64781e1c08277","homepage":"https://github.com/aslinwang/gearjs#readme","_id":"gearjs@0.0.10","_shasum":"1232661d69abdfd223972e19ebf6483c2e6b5f15","_from":".","_npmVersion":"3.10.7","_nodeVersion":"4.5.0","_npmUser":{"name":"aslinwang","email":"dreamjet.wang@gmail.com"},"maintainers":[{"name":"aslinwang","email":"dreamjet.wang@gmail.com"}],"dist":{"shasum":"1232661d69abdfd223972e19ebf6483c2e6b5f15","tarball":"https://registry.npmjs.org/gearjs/-/gearjs-0.0.10.tgz","integrity":"sha512-1OU1FSJ0f9v7Imf2VedwCktXtsWBbpYzksZmoGTncop2Cb2BgzDFkPBAt6u0DEvpM1v9bolftQMZd9DciT/nJw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICzBF1c5hTD/CH3LXbkPqEy4Cj10B/iZCg/ayL/ufekPAiEA2/4Flmf0zq53qd+4dp4raWuWrwozpopivU6ReQyyri4="}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/gearjs-0.0.10.tgz_1477646896246_0.05699685821309686"}},"0.0.11":{"name":"gearjs","version":"0.0.11","description":"utils for nodejs","main":"gear.js","repository":{"type":"git","url":"git+https://github.com/aslinwang/gearjs.git"},"keywords":["utils","async"],"scripts":{"test":"mocha"},"author":{"name":"aslinwang"},"license":"MIT","bugs":{"url":"https://github.com/aslinwang/gearjs/issues"},"dependencies":{"underscore":"*","q":"~1.0.1","lodash":"^4.16.4"},"devDependencies":{},"gitHead":"7420ce1cf811786c4c4ed4479811976404e58821","homepage":"https://github.com/aslinwang/gearjs#readme","_id":"gearjs@0.0.11","_shasum":"678c9741ac0c334d22aa60f121595c52299c5825","_from":".","_npmVersion":"3.10.7","_nodeVersion":"4.5.0","_npmUser":{"name":"aslinwang","email":"dreamjet.wang@gmail.com"},"maintainers":[{"name":"aslinwang","email":"dreamjet.wang@gmail.com"}],"dist":{"shasum":"678c9741ac0c334d22aa60f121595c52299c5825","tarball":"https://registry.npmjs.org/gearjs/-/gearjs-0.0.11.tgz","integrity":"sha512-CTaUodA/g+4ZpWYcvOOJZ21JP5ccj3T1iNksov3WrKjHqhVta9Fs1NlHiOqkAZRpwMuBiwbqgtq7sE6EXg51tg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDBNm+FZ5a5avRLT7PXYklxLP02R1rN7CtpbLbzkA/5AgIgIjPOHgqR/Taa7sliPbdzHFN6GBL/KuEDMQcBHWXSKSI="}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/gearjs-0.0.11.tgz_1477711587801_0.06931823771446943"}},"0.0.12":{"name":"gearjs","version":"0.0.12","description":"utils for nodejs","main":"gear.js","repository":{"type":"git","url":"git+https://github.com/aslinwang/gearjs.git"},"keywords":["utils","async"],"scripts":{"test":"mocha"},"author":{"name":"aslinwang"},"license":"MIT","bugs":{"url":"https://github.com/aslinwang/gearjs/issues"},"dependencies":{"underscore":"*","q":"~1.0.1","lodash":"^4.16.4","iconv-lite":"0.2.10"},"devDependencies":{},"gitHead":"226122be68770253ca1ca728d6e14c6c81b46714","homepage":"https://github.com/aslinwang/gearjs#readme","_id":"gearjs@0.0.12","_shasum":"cbad5a4b4b2551672cea6ed48f31bdaa9e4c98ac","_from":".","_npmVersion":"3.10.7","_nodeVersion":"4.5.0","_npmUser":{"name":"aslinwang","email":"dreamjet.wang@gmail.com"},"maintainers":[{"name":"aslinwang","email":"dreamjet.wang@gmail.com"}],"dist":{"shasum":"cbad5a4b4b2551672cea6ed48f31bdaa9e4c98ac","tarball":"https://registry.npmjs.org/gearjs/-/gearjs-0.0.12.tgz","integrity":"sha512-UN9RwY2Ica0ZQCyrxwjiEe4wKKm5qCM5BEwp3EudEQXPI9n+EqWQqND8EMY+AfWFfGtlI67sPtzHsgsRh+1Hng==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGM6Dzst2V6DAPdiR081YKNwi2A2eJNw+Dah19td67zCAiBghp8/RVCH2fsontrIJmZk5IuF9pV0aKpVC7J4XBfLEg=="}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/gearjs-0.0.12.tgz_1481709658216_0.2623726411256939"}}},"readme":"gearjs\n======\n\nSome useful tools for nodejs development\n\nSome tools are from https://github.com/wyicwx/mutils\n\n##Usage\n```javascript\nvar gear = require('gear');\n\nvar _ = gear._;//underscore\n\n//watch object`s change\nvar listenid = gear.listen.add({}, function(data){//add watch\n  //do something\n});\ngear.listen.set(listenid, {a:1});//set object, and will trigger callback function of 'add'\n\ngear.jsonsize(jsonobj);//calculate the length of a simple json object\n\ngear.fs.mkdir('a/b/c', './');//make dir ./a/b/c\n\ngear.fs.readFile('test.js').done(function(data){//read local file\n  //content of test.js\n});\ngear.fs.readFile('http://test.com/test.js').done(function(data){//read net file\n  //content of test.js\n});\n\ngear.fs.copyFile(file, tarDir, [\n  { match : '@', replacement : '-', isreg:false}\n]).done(function(src){\n  \n});\n\ngear.fs.clearDirSync('a', function(){//remove all files from 'a' directory\n  //do something\n});\n\n//Sequential execution in nodejs\nvar c = gear.connect();\nc.use(function(data, next, done) {\n  //coding1\n  next(data); //pass to next function \n});\nc.use(function(data, next, done) {\n  //coding2\n  done(data); //stop pass and trigger to fire\n});\nc.fire();\n\n```\n","maintainers":[{"name":"aslinwang","email":"dreamjet.wang@gmail.com"}],"time":{"modified":"2022-06-18T05:11:21.619Z","created":"2014-07-24T08:35:04.834Z","0.0.1":"2014-07-24T08:35:06.385Z","0.0.2":"2014-07-25T03:51:44.943Z","0.0.3":"2014-07-29T02:53:43.578Z","0.0.4":"2014-08-23T12:07:55.356Z","0.0.5":"2014-10-03T08:52:41.872Z","0.0.6":"2015-03-09T12:30:48.756Z","0.0.7":"2015-05-01T03:38:26.689Z","0.0.8":"2015-05-11T08:58:58.565Z","0.0.9":"2015-06-30T09:18:48.111Z","0.0.10":"2016-10-28T09:28:16.492Z","0.0.11":"2016-10-29T03:26:28.046Z","0.0.12":"2016-12-14T10:00:58.458Z"},"readmeFilename":"README.md","keywords":["utils","async"],"repository":{"type":"git","url":"git+https://github.com/aslinwang/gearjs.git"},"author":{"name":"aslinwang"},"bugs":{"url":"https://github.com/aslinwang/gearjs/issues"},"license":"MIT","homepage":"https://github.com/aslinwang/gearjs#readme"}