{"_id":"cd","_rev":"2764146","name":"cd","description":"chdir in chainer fashion + read file","dist-tags":{"latest":"0.3.3"},"maintainers":[{"name":"sipware","email":"npm@sipware.org"}],"time":{"modified":"2022-02-14T08:04:40.000Z","created":"2013-05-28T14:15:41.967Z","0.3.3":"2013-06-05T14:40:29.353Z","0.3.2":"2013-06-04T01:02:38.594Z","0.3.1":"2013-06-01T00:04:58.065Z","0.3.0":"2013-05-29T11:35:49.361Z","0.2.2":"2013-05-29T11:27:03.018Z","0.2.0":"2013-05-28T23:45:30.687Z","0.1.3":"2013-05-28T17:45:15.684Z","0.1.2":"2013-05-28T17:38:57.569Z","0.1.1":"2013-05-28T14:39:39.331Z","0.1.0":"2013-05-28T14:34:01.166Z","0.0.2":"2013-05-28T14:27:22.311Z","0.0.1":"2013-05-28T14:15:41.967Z"},"users":{},"author":{"name":"Ivan Popovski"},"repository":{"type":"git","url":"https://github.com/melkior/cd.git"},"versions":{"0.3.3":{"name":"cd","version":"0.3.3","description":"chdir in chainer fashion + read file","main":"index.js","author":{"name":"Ivan Popovski"},"keywords":["cd","chdir"],"repository":{"type":"git","url":"https://github.com/melkior/cd.git"},"engines":{"node":"*"},"readmeFilename":"README.md","bugs":{"url":"https://github.com/melkior/cd/issues"},"_id":"cd@0.3.3","dist":{"shasum":"108ecb57bff93b96b9115c54573cfef3008ef94d","size":2211,"noattachment":false,"key":"/cd/-/cd-0.3.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/cd/download/cd-0.3.3.tgz"},"_from":".","_npmVersion":"1.2.21","_npmUser":{"name":"sipware","email":"ip@sipware.org"},"maintainers":[{"name":"sipware","email":"npm@sipware.org"}],"directories":{},"publish_time":1370443229353,"_hasShrinkwrap":false,"_cnpm_publish_time":1370443229353,"_cnpmcore_publish_time":"2021-12-17T05:53:08.953Z"},"0.3.2":{"name":"cd","version":"0.3.2","description":"chdir in chainer fashion + read file","main":"index.js","author":{"name":"Ivan Popovski"},"keywords":["cd","chdir"],"repository":{"type":"git","url":"https://github.com/melkior/cd.git"},"engines":{"node":"*"},"readmeFilename":"README.md","bugs":{"url":"https://github.com/melkior/cd/issues"},"_id":"cd@0.3.2","dist":{"shasum":"6e086659d123fb9566eb4e1fe0a6c16de0b23b39","size":2171,"noattachment":false,"key":"/cd/-/cd-0.3.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/cd/download/cd-0.3.2.tgz"},"_from":".","_npmVersion":"1.2.21","_npmUser":{"name":"sipware","email":"ip@sipware.org"},"maintainers":[{"name":"sipware","email":"npm@sipware.org"}],"directories":{},"publish_time":1370307758594,"_hasShrinkwrap":false,"_cnpm_publish_time":1370307758594,"_cnpmcore_publish_time":"2021-12-17T05:53:09.247Z"},"0.3.1":{"name":"cd","version":"0.3.1","description":"chdir in chainer fashion + read file","main":"index.js","author":{"name":"Ivan Popovski"},"keywords":["cd","chdir"],"repository":{"type":"git","url":"https://github.com/melkior/cd.git"},"engines":{"node":"*"},"readmeFilename":"README.md","bugs":{"url":"https://github.com/melkior/cd/issues"},"_id":"cd@0.3.1","dist":{"shasum":"0ffaa8af63518508dfc133f8faa5ea9dd39760c3","size":2168,"noattachment":false,"key":"/cd/-/cd-0.3.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/cd/download/cd-0.3.1.tgz"},"_from":".","_npmVersion":"1.2.21","_npmUser":{"name":"sipware","email":"ip@sipware.org"},"maintainers":[{"name":"sipware","email":"npm@sipware.org"}],"directories":{},"publish_time":1370045098065,"_hasShrinkwrap":false,"_cnpm_publish_time":1370045098065,"_cnpmcore_publish_time":"2021-12-17T05:53:09.497Z"},"0.3.0":{"name":"cd","version":"0.3.0","description":"chdir in chainer fashion + read file","main":"index.js","author":{"name":"Ivan Popovski"},"keywords":["cd","chdir"],"repository":{"type":"git","url":"https://github.com/melkior/cd.git"},"engines":{"node":"*"},"readmeFilename":"README.md","bugs":{"url":"https://github.com/melkior/cd/issues"},"_id":"cd@0.3.0","dist":{"shasum":"ccbd434e031914dce4459171ba3eaea624c8d977","size":2142,"noattachment":false,"key":"/cd/-/cd-0.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/cd/download/cd-0.3.0.tgz"},"_from":".","_npmVersion":"1.2.21","_npmUser":{"name":"sipware","email":"ip@sipware.org"},"maintainers":[{"name":"sipware","email":"npm@sipware.org"}],"directories":{},"publish_time":1369827349361,"_hasShrinkwrap":false,"_cnpm_publish_time":1369827349361,"_cnpmcore_publish_time":"2021-12-17T05:53:09.750Z"},"0.2.2":{"name":"cd","version":"0.2.2","description":"chdir in chainer fashion + read file","main":"index.js","author":{"name":"Ivan Popovski"},"keywords":["cd","chdir"],"repository":{"type":"git","url":"https://github.com/melkior/cd.git"},"engines":{"node":"*"},"readmeFilename":"README.md","bugs":{"url":"https://github.com/melkior/cd/issues"},"_id":"cd@0.2.2","dist":{"shasum":"342f180ee30033ff82580687734916ecdd346a39","size":2111,"noattachment":false,"key":"/cd/-/cd-0.2.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/cd/download/cd-0.2.2.tgz"},"_from":".","_npmVersion":"1.2.21","_npmUser":{"name":"sipware","email":"ip@sipware.org"},"maintainers":[{"name":"sipware","email":"npm@sipware.org"}],"directories":{},"publish_time":1369826823018,"_hasShrinkwrap":false,"_cnpm_publish_time":1369826823018,"_cnpmcore_publish_time":"2021-12-17T05:53:09.956Z"},"0.2.0":{"name":"cd","version":"0.2.0","description":"chdir in chainer fashion + read file","main":"index.js","author":{"name":"Ivan Popovski"},"keywords":["cd","chdir"],"repository":{"type":"git","url":"https://github.com/melkior/cd.git"},"engines":{"node":"*"},"readmeFilename":"README.md","bugs":{"url":"https://github.com/melkior/cd/issues"},"_id":"cd@0.2.0","dist":{"shasum":"9da69f793f95c01b4bbd6ac3c25057d430d99812","size":1980,"noattachment":false,"key":"/cd/-/cd-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/cd/download/cd-0.2.0.tgz"},"_from":".","_npmVersion":"1.2.21","_npmUser":{"name":"sipware","email":"ip@sipware.org"},"maintainers":[{"name":"sipware","email":"npm@sipware.org"}],"directories":{},"publish_time":1369784730687,"_hasShrinkwrap":false,"_cnpm_publish_time":1369784730687,"_cnpmcore_publish_time":"2021-12-17T05:53:10.150Z"},"0.1.3":{"name":"cd","version":"0.1.3","description":"chdir in chainer fashion + read file","main":"index.js","author":{"name":"Ivan Popovski"},"keywords":["cd","chdir"],"repository":{"type":"git","url":"https://github.com/melkior/cd.git"},"engines":{"node":"*"},"readmeFilename":"README.md","bugs":{"url":"https://github.com/melkior/cd/issues"},"_id":"cd@0.1.3","dist":{"shasum":"1624c0f8a1860a003268dfa72b2f2daf66271c09","size":1762,"noattachment":false,"key":"/cd/-/cd-0.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/cd/download/cd-0.1.3.tgz"},"_from":".","_npmVersion":"1.2.21","_npmUser":{"name":"sipware","email":"ip@sipware.org"},"maintainers":[{"name":"sipware","email":"npm@sipware.org"}],"directories":{},"publish_time":1369763115684,"_hasShrinkwrap":false,"_cnpm_publish_time":1369763115684,"_cnpmcore_publish_time":"2021-12-17T05:53:10.348Z"},"0.1.2":{"name":"cd","version":"0.1.2","description":"chdir in chainer fashion + read file","main":"index.js","author":{"name":"Ivan Popovski"},"keywords":["cd","chdir"],"repository":{"type":"git","url":"https://github.com/melkior/cd.git"},"engines":{"node":"*"},"readmeFilename":"README.md","bugs":{"url":"https://github.com/melkior/cd/issues"},"_id":"cd@0.1.2","dist":{"shasum":"77f428796bffce40e245aabce516abeb2266dace","size":1887,"noattachment":false,"key":"/cd/-/cd-0.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/cd/download/cd-0.1.2.tgz"},"_from":".","_npmVersion":"1.2.21","_npmUser":{"name":"sipware","email":"ip@sipware.org"},"maintainers":[{"name":"sipware","email":"npm@sipware.org"}],"directories":{},"publish_time":1369762737569,"_hasShrinkwrap":false,"_cnpm_publish_time":1369762737569,"_cnpmcore_publish_time":"2021-12-17T05:53:10.606Z"},"0.1.1":{"name":"cd","version":"0.1.1","description":"chdir in chainer fashion + read file","main":"index.js","author":{"name":"Ivan Popovski"},"keywords":["cd","chdir"],"repository":{"type":"git","url":"https://github.com/melkior/cd.git"},"engines":{"node":"*"},"readmeFilename":"README.md","bugs":{"url":"https://github.com/melkior/cd/issues"},"_id":"cd@0.1.1","dist":{"shasum":"81ce1ecd8c685ab1d7af449a7bd4b1eabcaa6f94","size":1696,"noattachment":false,"key":"/cd/-/cd-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/cd/download/cd-0.1.1.tgz"},"_from":".","_npmVersion":"1.2.21","_npmUser":{"name":"sipware","email":"ip@sipware.org"},"maintainers":[{"name":"sipware","email":"npm@sipware.org"}],"directories":{},"publish_time":1369751979331,"_hasShrinkwrap":false,"_cnpm_publish_time":1369751979331,"_cnpmcore_publish_time":"2021-12-17T05:53:10.824Z"},"0.1.0":{"name":"cd","version":"0.1.0","description":"chdir in chainer fashion + read file","main":"index.js","author":{"name":"Ivan Popovski"},"keywords":["cd","chdir"],"repository":{"type":"git","url":"https://github.com/melkior/cd.git"},"engines":{"node":"*"},"readmeFilename":"README.md","bugs":{"url":"https://github.com/melkior/cd/issues"},"_id":"cd@0.1.0","dist":{"shasum":"68db3ccd2d3a23ab2a94e668b72ecb6726437ab6","size":1721,"noattachment":false,"key":"/cd/-/cd-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/cd/download/cd-0.1.0.tgz"},"_from":".","_npmVersion":"1.2.21","_npmUser":{"name":"sipware","email":"ip@sipware.org"},"maintainers":[{"name":"sipware","email":"npm@sipware.org"}],"directories":{},"publish_time":1369751641166,"_hasShrinkwrap":false,"_cnpm_publish_time":1369751641166,"_cnpmcore_publish_time":"2021-12-17T05:53:11.068Z"},"0.0.2":{"name":"cd","version":"0.0.2","description":"chdir in chainer fashion + read file","main":"index.js","author":{"name":"Ivan Popovski"},"keywords":["cd","chdir"],"repository":{"type":"git","url":"https://github.com/melkior/cd.git"},"engines":{"node":"*"},"readmeFilename":"README.md","bugs":{"url":"https://github.com/melkior/cd/issues"},"_id":"cd@0.0.2","dist":{"shasum":"ea8ee0028cc175c6961de367b5193d66ec4947db","size":1641,"noattachment":false,"key":"/cd/-/cd-0.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/cd/download/cd-0.0.2.tgz"},"_from":".","_npmVersion":"1.2.21","_npmUser":{"name":"sipware","email":"ip@sipware.org"},"maintainers":[{"name":"sipware","email":"npm@sipware.org"}],"directories":{},"publish_time":1369751242311,"_hasShrinkwrap":false,"_cnpm_publish_time":1369751242311,"_cnpmcore_publish_time":"2021-12-17T05:53:11.269Z"},"0.0.1":{"name":"cd","version":"0.0.1","description":"cd chainer module","main":"index.js","author":{"name":"Ivan Popovski"},"keywords":["cd","chdir"],"repository":{"type":"git","url":"https://github.com/melkior/cd.git"},"engines":{"node":"*"},"readmeFilename":"README.md","bugs":{"url":"https://github.com/melkior/cd/issues"},"_id":"cd@0.0.1","dist":{"shasum":"d35e8691edcab7324b2fc9478c4ee4b60e4f6f57","size":1640,"noattachment":false,"key":"/cd/-/cd-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/cd/download/cd-0.0.1.tgz"},"_from":".","_npmVersion":"1.2.21","_npmUser":{"name":"sipware","email":"ip@sipware.org"},"maintainers":[{"name":"sipware","email":"npm@sipware.org"}],"directories":{},"publish_time":1369750541967,"_hasShrinkwrap":false,"_cnpm_publish_time":1369750541967,"_cnpmcore_publish_time":"2021-12-17T05:53:11.487Z"}},"readme":"cd\n==\n\nChange directory in chaining fashion.\n\nRules:\n\n    1. Reading .json file will strip comments and converte into JSON object.\n    2. Reading .js file is equivalent of require('dir/to/file')\n    3. Other files are just read.\n    4. Supply file as argument on last call. No chaning afterwards.\n    5. Module is syncro, but if you have good idea how to make it async please let me know.\n\nUsage:\n\n    var Cd = require('cd');\n    var cd = new Cd('.');\n\n    // Read lol.json from current directory\n    var lol = cd('lol.json');\n\n    // Read wtf.js from test directory.\n    var wtf = cd().test('wtf.js');\n    console.log('wtf:'+JSON.stringify(wtf));\n\n    // Chain as you like\n    var file = cd().dir1().dir2(file_in_dir2);\n\n","_attachments":{},"readmeFilename":"README.md","bugs":{"url":"https://github.com/melkior/cd/issues"}}