{"_id":"defs","_rev":"62351","name":"defs","description":"Static scope analysis and transpilation of ES6 block scoped const and let variables, to ES3.","dist-tags":{"latest":"1.1.1"},"maintainers":[{"name":"olov","email":"olov.lassus@gmail.com"}],"time":{"modified":"2021-06-03T10:21:07.000Z","created":"2013-04-24T06:29:49.713Z","1.1.1":"2015-10-09T19:59:57.172Z","1.1.0":"2014-11-28T10:11:46.024Z","1.0.1":"2014-10-09T14:31:02.864Z","1.0.0":"2014-07-18T10:12:44.045Z","0.6.2":"2013-12-09T15:25:15.925Z","0.6.1":"2013-12-09T14:06:56.392Z","0.6.0":"2013-11-30T23:25:25.163Z","0.5.0":"2013-09-30T14:42:30.959Z","0.4.3":"2013-09-05T15:19:49.921Z","0.4.2":"2013-09-01T09:27:23.747Z","0.4.1":"2013-07-28T13:06:30.489Z","0.4.0":"2013-07-09T22:30:02.620Z","0.3.0":"2013-07-05T13:47:01.866Z","0.2.1":"2013-05-04T15:11:27.313Z","0.2.0":"2013-04-26T09:33:57.026Z","0.1.2":"2013-04-24T08:29:51.922Z","0.1.1":"2013-04-24T08:06:22.808Z","0.1.0":"2013-04-24T06:29:49.713Z"},"users":{},"author":{"name":"Olov Lassus","email":"olov.lassus@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/olov/defs.git"},"versions":{"1.1.1":{"name":"defs","version":"1.1.1","description":"Static scope analysis and transpilation of ES6 block scoped const and let variables, to ES3.","main":"build/es5/defs-main.js","repository":{"type":"git","url":"git+https://github.com/olov/defs.git"},"dependencies":{"alter":"~0.2.0","ast-traverse":"~0.1.1","breakable":"~1.0.0","esprima-fb":"~15001.1001.0-dev-harmony-fb","simple-fmt":"~0.1.0","simple-is":"~0.2.0","stringmap":"~0.2.2","stringset":"~0.2.1","tryor":"~0.1.2","yargs":"~3.27.0"},"devDependencies":{"diff":"~2.1.3"},"keywords":["defs","scope","blockscope","block-scope","let","const","var","es6","transpile","transpiler","lint","linter"],"scripts":{"test":"node --harmony run-tests"},"bin":{"defs":"./build/es5/defs"},"author":{"name":"Olov Lassus","email":"olov.lassus@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/olov/defs/issues"},"homepage":"https://github.com/olov/defs#readme","_id":"defs@1.1.1","_shasum":"b22609f2c7a11ba7a3db116805c139b1caffa9d2","_resolved":"file:build/npm/defs.tgz","_from":"build/npm/defs.tgz","_npmVersion":"2.14.4","_nodeVersion":"4.1.1","_npmUser":{"name":"olov","email":"olov.lassus@gmail.com"},"maintainers":[{"name":"olov","email":"olov.lassus@gmail.com"}],"dist":{"shasum":"b22609f2c7a11ba7a3db116805c139b1caffa9d2","size":36322,"noattachment":false,"key":"/defs/-/defs-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/defs/download/defs-1.1.1.tgz"},"directories":{},"publish_time":1444420797172,"_cnpm_publish_time":1444420797172,"_hasShrinkwrap":false},"1.1.0":{"name":"defs","version":"1.1.0","description":"Static scope analysis and transpilation of ES6 block scoped const and let variables, to ES3.","main":"build/es5/defs-main.js","repository":{"type":"git","url":"https://github.com/olov/defs.git"},"dependencies":{"alter":"~0.2.0","ast-traverse":"~0.1.1","breakable":"~1.0.0","esprima-fb":"~8001.1001.0-dev-harmony-fb","simple-fmt":"~0.1.0","simple-is":"~0.2.0","stringmap":"~0.2.2","stringset":"~0.2.1","tryor":"~0.1.2","yargs":"~1.3.2"},"devDependencies":{"diff":"~1.0.8"},"keywords":["defs","scope","blockscope","block-scope","let","const","var","es6","transpile","transpiler","lint","linter"],"scripts":{"test":"node --harmony run-tests"},"bin":{"defs":"./build/es5/defs"},"author":{"name":"Olov Lassus","email":"olov.lassus@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/olov/defs/issues"},"homepage":"https://github.com/olov/defs","_id":"defs@1.1.0","_shasum":"a271201acd271eb0be887eefc61edd9f89f32b49","_resolved":"defs.tgz","_from":"build/npm/defs.tgz","_npmVersion":"2.0.0","_npmUser":{"name":"olov","email":"olov.lassus@gmail.com"},"maintainers":[{"name":"olov","email":"olov.lassus@gmail.com"}],"dist":{"shasum":"a271201acd271eb0be887eefc61edd9f89f32b49","size":36199,"noattachment":false,"key":"/defs/-/defs-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/defs/download/defs-1.1.0.tgz"},"directories":{},"publish_time":1417169506024,"_cnpm_publish_time":1417169506024,"_hasShrinkwrap":false},"1.0.1":{"name":"defs","version":"1.0.1","description":"Static scope analysis and transpilation of ES6 block scoped const and let variables, to ES3.","main":"build/es5/defs-main.js","repository":{"type":"git","url":"https://github.com/olov/defs.git"},"dependencies":{"alter":"~0.2.0","ast-traverse":"~0.1.1","breakable":"~1.0.0","esprima":"git://github.com/ariya/esprima.git#harmony","simple-fmt":"~0.1.0","simple-is":"~0.2.0","stringmap":"~0.2.2","stringset":"~0.2.1","tryor":"~0.1.2","yargs":"~1.3.2"},"devDependencies":{"diff":"~1.0.8"},"keywords":["defs","scope","blockscope","block-scope","let","const","var","es6","transpile","transpiler","lint","linter"],"scripts":{"test":"node --harmony run-tests"},"bin":{"defs":"./build/es5/defs"},"author":{"name":"Olov Lassus","email":"olov.lassus@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/olov/defs/issues"},"homepage":"https://github.com/olov/defs","_id":"defs@1.0.1","_shasum":"b9f23295997b9565b2f09134464b18ef6b37dbfb","_resolved":"npm/defs.tgz","_from":"build/npm/defs.tgz","_npmVersion":"2.0.0","_npmUser":{"name":"olov","email":"olov.lassus@gmail.com"},"maintainers":[{"name":"olov","email":"olov.lassus@gmail.com"}],"dist":{"shasum":"b9f23295997b9565b2f09134464b18ef6b37dbfb","size":36075,"noattachment":false,"key":"/defs/-/defs-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/defs/download/defs-1.0.1.tgz"},"directories":{},"publish_time":1412865062864,"_cnpm_publish_time":1412865062864,"_hasShrinkwrap":false},"1.0.0":{"name":"defs","version":"1.0.0","description":"Static scope analysis and transpilation of ES6 block scoped const and let variables, to ES3.","main":"build/es5/defs-main.js","repository":{"type":"git","url":"https://github.com/olov/defs.git"},"dependencies":{"alter":"~0.2.0","ast-traverse":"~0.1.1","breakable":"~1.0.0","esprima":"git://github.com/ariya/esprima.git#harmony","simple-fmt":"~0.1.0","simple-is":"~0.2.0","stringmap":"~0.2.2","stringset":"~0.2.1","tryor":"~0.1.2","yargs":"~1.2.6"},"devDependencies":{"diff":"~1.0.8"},"keywords":["defs","scope","blockscope","block-scope","let","const","var","es6","transpile","transpiler","lint","linter"],"scripts":{"test":"node --harmony run-tests"},"bin":{"defs":"./build/es5/defs"},"author":{"name":"Olov Lassus","email":"olov.lassus@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/olov/defs/issues"},"homepage":"https://github.com/olov/defs","_id":"defs@1.0.0","dist":{"shasum":"25994be16175761b0d3b50fc9d42a6b3b57ced04","size":35753,"noattachment":false,"key":"/defs/-/defs-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/defs/download/defs-1.0.0.tgz"},"_resolved":"npm/defs.tgz","_from":"npm/defs.tgz","_npmVersion":"1.3.25","_npmUser":{"name":"olov","email":"olov.lassus@gmail.com"},"maintainers":[{"name":"olov","email":"olov.lassus@gmail.com"}],"directories":{},"publish_time":1405678364045,"_cnpm_publish_time":1405678364045,"_hasShrinkwrap":false},"0.6.2":{"name":"defs","version":"0.6.2","description":"Static scope analysis and transpilation of ES6 block scoped const and let variables, to ES3.","main":"build/es5/defs-main.js","repository":{"type":"git","url":"https://github.com/olov/defs.git"},"dependencies":{"alter":"~0.2.0","breakable":"~0.1.0","ast-traverse":"~0.1.1","simple-fmt":"~0.1.0","simple-is":"~0.2.0","stringmap":"~0.2.2","stringset":"~0.2.1","tryor":"~0.1.2","esprima":"~1.0.0"},"devDependencies":{"diff":"~1.0.7"},"keywords":["defs","scope","blockscope","block-scope","let","const","var","es6","transpile","transpiler","lint","linter"],"scripts":{"test":"node --harmony run-tests"},"bin":{"defs":"./build/es5/defs"},"author":{"name":"Olov Lassus","email":"olov.lassus@gmail.com"},"license":"MIT","readmeFilename":"README.md","bugs":{"url":"https://github.com/olov/defs/issues"},"_id":"defs@0.6.2","dist":{"shasum":"c4e05855d29a7a3a9cd9cca4a40813503418d907","size":34930,"noattachment":false,"key":"/defs/-/defs-0.6.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/defs/download/defs-0.6.2.tgz"},"_resolved":"npm/defs.tgz","_from":"npm/defs.tgz","_npmVersion":"1.3.11","_npmUser":{"name":"olov","email":"olov.lassus@gmail.com"},"maintainers":[{"name":"olov","email":"olov.lassus@gmail.com"}],"directories":{},"publish_time":1386602715925,"_cnpm_publish_time":1386602715925,"_hasShrinkwrap":false},"0.6.1":{"name":"defs","version":"0.6.1","description":"Static scope analysis and transpilation of ES6 block scoped const and let variables, to ES3.","main":"build/es5/defs-main.js","repository":{"type":"git","url":"https://github.com/olov/defs.git"},"dependencies":{"alter":"~0.2.0","breakable":"~0.1.0","ast-traverse":"~0.1.1","simple-fmt":"~0.1.0","simple-is":"~0.2.0","stringmap":"~0.2.2","stringset":"~0.2.1","tryor":"~0.1.2","esprima":"~1.0.0"},"devDependencies":{"diff":"~1.0.7"},"keywords":["defs","scope","blockscope","block-scope","let","const","var","es6","transpile","transpiler","lint","linter"],"scripts":{"test":"node --harmony run-tests"},"bin":{"defs":"./build/es5/defs"},"author":{"name":"Olov Lassus","email":"olov.lassus@gmail.com"},"license":"MIT","readmeFilename":"README.md","bugs":{"url":"https://github.com/olov/defs/issues"},"_id":"defs@0.6.1","dist":{"shasum":"a4044fdc263e2e1ed1964898fe4c287512736d1c","size":34687,"noattachment":false,"key":"/defs/-/defs-0.6.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/defs/download/defs-0.6.1.tgz"},"_resolved":"npm/defs.tgz","_from":"npm/defs.tgz","_npmVersion":"1.3.11","_npmUser":{"name":"olov","email":"olov.lassus@gmail.com"},"maintainers":[{"name":"olov","email":"olov.lassus@gmail.com"}],"directories":{},"publish_time":1386598016392,"_cnpm_publish_time":1386598016392,"_hasShrinkwrap":false},"0.6.0":{"name":"defs","version":"0.6.0","description":"Static scope analysis and transpilation of ES6 block scoped const and let variables, to ES3.","main":"build/es5/defs-main.js","repository":{"type":"git","url":"https://github.com/olov/defs.git"},"dependencies":{"alter":"~0.2.0","breakable":"~0.1.0","ast-traverse":"~0.1.1","simple-fmt":"~0.1.0","simple-is":"~0.2.0","stringmap":"~0.2.2","stringset":"~0.2.1","tryor":"~0.1.2","esprima":"~1.0.0"},"devDependencies":{"diff":"~1.0.7"},"keywords":["defs","scope","blockscope","block-scope","let","const","var","es6","transpile","transpiler","lint","linter"],"scripts":{"test":"node --harmony run-tests"},"bin":{"defs":"./build/es5/defs"},"author":{"name":"Olov Lassus","email":"olov.lassus@gmail.com"},"license":"MIT","readmeFilename":"README.md","bugs":{"url":"https://github.com/olov/defs/issues"},"_id":"defs@0.6.0","dist":{"shasum":"3070b3ac815cea7c01c9f9caf2d0ec28db39bfb7","size":34403,"noattachment":false,"key":"/defs/-/defs-0.6.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/defs/download/defs-0.6.0.tgz"},"_resolved":"npm/defs.tgz","_from":"npm/defs.tgz","_npmVersion":"1.3.11","_npmUser":{"name":"olov","email":"olov.lassus@gmail.com"},"maintainers":[{"name":"olov","email":"olov.lassus@gmail.com"}],"directories":{},"publish_time":1385853925163,"_cnpm_publish_time":1385853925163,"_hasShrinkwrap":false},"0.5.0":{"name":"defs","version":"0.5.0","description":"Static scope analysis and transpilation of ES6 block scoped const and let variables, to ES3.","main":"build/es5/defs-main.js","repository":{"type":"git","url":"https://github.com/olov/defs.git"},"dependencies":{"alter":"~0.2.0","breakable":"~0.1.0","ast-traverse":"~0.1.1","simple-fmt":"~0.1.0","simple-is":"~0.2.0","stringmap":"~0.2.2","stringset":"~0.2.1","tryor":"~0.1.2","esprima":"~1.0.0"},"devDependencies":{"diff":"~1.0.7"},"keywords":["defs","scope","blockscope","block-scope","let","const","var","es6","transpile","transpiler","lint","linter"],"scripts":{"test":"node --harmony run-tests"},"bin":{"defs":"./build/es5/defs"},"author":{"name":"Olov Lassus","email":"olov.lassus@gmail.com"},"license":"MIT","readmeFilename":"README.md","_id":"defs@0.5.0","dist":{"shasum":"3c0a32d122385dd43eb951a8a3cfa7f537bb47ec","size":33990,"noattachment":false,"key":"/defs/-/defs-0.5.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/defs/download/defs-0.5.0.tgz"},"_resolved":"npm/defs.tgz","_from":"npm/defs.tgz","_npmVersion":"1.2.18","_npmUser":{"name":"olov","email":"olov.lassus@gmail.com"},"maintainers":[{"name":"olov","email":"olov.lassus@gmail.com"}],"directories":{},"publish_time":1380552150959,"_cnpm_publish_time":1380552150959,"_hasShrinkwrap":false},"0.4.3":{"name":"defs","version":"0.4.3","description":"Static scope analysis and transpilation of ES6 block scoped const and let variables, to ES3.","main":"build/es5/defs-main.js","repository":{"type":"git","url":"https://github.com/olov/defs.git"},"dependencies":{"alter":"~0.1.0","ast-traverse":"~0.1.0","simple-fmt":"~0.1.0","simple-is":"~0.2.0","stringmap":"~0.2.0","stringset":"~0.2.0","tryor":"~0.1.0","esprima":"~1.0.0"},"keywords":["defs","scope","blockscope","block-scope","let","const","var","es6","transpile","transpiler","lint","linter"],"scripts":{"test":"node --harmony run-tests"},"bin":{"defs":"./build/es5/defs"},"author":{"name":"Olov Lassus","email":"olov.lassus@gmail.com"},"license":"MIT","readmeFilename":"README.md","_id":"defs@0.4.3","dist":{"shasum":"db5242eb1391c09d77cade8fba8dc3af74fc6c0d","size":26417,"noattachment":false,"key":"/defs/-/defs-0.4.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/defs/download/defs-0.4.3.tgz"},"_resolved":"defs.tgz","_from":"defs.tgz","_npmVersion":"1.2.18","_npmUser":{"name":"olov","email":"olov.lassus@gmail.com"},"maintainers":[{"name":"olov","email":"olov.lassus@gmail.com"}],"directories":{},"publish_time":1378394389921,"_cnpm_publish_time":1378394389921,"_hasShrinkwrap":false},"0.4.2":{"name":"defs","version":"0.4.2","description":"Static scope analysis and transpilation of ES6 block scoped const and let variables, to ES3.","main":"build/es5/defs-main.js","repository":{"type":"git","url":"https://github.com/olov/defs.git"},"dependencies":{"alter":"~0.1.0","ast-traverse":"~0.1.0","simple-fmt":"~0.1.0","simple-is":"~0.2.0","stringmap":"~0.2.0","stringset":"~0.2.0","tryor":"~0.1.0","esprima":"~1.0.0"},"keywords":["defs","scope","blockscope","block-scope","let","const","var","es6","transpile","transpiler","lint","linter"],"scripts":{"test":"node --harmony run-tests"},"bin":{"defs":"./build/es5/defs"},"author":{"name":"Olov Lassus","email":"olov.lassus@gmail.com"},"license":"MIT","readmeFilename":"README.md","_id":"defs@0.4.2","dist":{"shasum":"73e02816633c8e0d6a9ee392b85e49f1ba275b30","size":26298,"noattachment":false,"key":"/defs/-/defs-0.4.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/defs/download/defs-0.4.2.tgz"},"_resolved":"npm/defs.tgz","_from":"npm/defs.tgz","_npmVersion":"1.2.18","_npmUser":{"name":"olov","email":"olov.lassus@gmail.com"},"maintainers":[{"name":"olov","email":"olov.lassus@gmail.com"}],"directories":{},"publish_time":1378027643747,"_cnpm_publish_time":1378027643747,"_hasShrinkwrap":false},"0.4.1":{"name":"defs","version":"0.4.1","description":"Static scope analysis and transpilation of ES6 block scoped const and let variables, to ES3.","main":"build/es5/defs-main.js","repository":{"type":"git","url":"https://github.com/olov/defs.git"},"dependencies":{"alter":"~0.1.0","simple-fmt":"~0.1.0","simple-is":"~0.2.0","stringmap":"~0.2.0","stringset":"~0.2.0","tryor":"~0.1.0","esprima":"~1.0.0"},"keywords":["defs","scope","blockscope","block-scope","let","const","var","es6","transpile","transpiler","lint","linter"],"scripts":{"test":"node --harmony run-tests"},"bin":{"defs":"./build/es5/defs"},"author":{"name":"Olov Lassus","email":"olov.lassus@gmail.com"},"license":"MIT","readmeFilename":"README.md","_id":"defs@0.4.1","dist":{"shasum":"75def20ea1a60a2768b6556f1bb9f12dfb64154e","size":29530,"noattachment":false,"key":"/defs/-/defs-0.4.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/defs/download/defs-0.4.1.tgz"},"_resolved":"defs.tgz","_from":"defs.tgz","_npmVersion":"1.2.18","_npmUser":{"name":"olov","email":"olov.lassus@gmail.com"},"maintainers":[{"name":"olov","email":"olov.lassus@gmail.com"}],"directories":{},"publish_time":1375016790489,"_cnpm_publish_time":1375016790489,"_hasShrinkwrap":false},"0.4.0":{"name":"defs","version":"0.4.0","description":"Static scope analysis and transpilation of ES6 block scoped const and let variables, to ES3.","main":"build/es5/defs-main.js","repository":{"type":"git","url":"https://github.com/olov/defs.git"},"dependencies":{"alter":"~0.1.0","simple-fmt":"~0.1.0","simple-is":"~0.2.0","stringmap":"~0.2.0","stringset":"~0.2.0","tryor":"~0.1.0","esprima":"~1.0.0"},"keywords":["defs","scope","blockscope","block-scope","let","const","var","es6","transpile","transpiler","lint","linter"],"scripts":{"test":"node --harmony run-tests"},"bin":{"defs":"./build/es5/defs"},"author":{"name":"Olov Lassus","email":"olov.lassus@gmail.com"},"license":"MIT","readmeFilename":"README.md","_id":"defs@0.4.0","dist":{"shasum":"be27c09ecbb7541f8eaa4a0619074d0c114f1889","size":29083,"noattachment":false,"key":"/defs/-/defs-0.4.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/defs/download/defs-0.4.0.tgz"},"_resolved":"defs.tgz","_from":"defs.tgz","_npmVersion":"1.2.18","_npmUser":{"name":"olov","email":"olov.lassus@gmail.com"},"maintainers":[{"name":"olov","email":"olov.lassus@gmail.com"}],"directories":{},"publish_time":1373409002620,"_cnpm_publish_time":1373409002620,"_hasShrinkwrap":false},"0.3.0":{"name":"defs","version":"0.3.0","description":"Static scope analysis and transpilation of ES6 block scoped const and let variables, to ES3.","main":"defs-main.js","repository":{"type":"git","url":"https://github.com/olov/defs.git"},"dependencies":{"alter":"~0.1.0","simple-fmt":"~0.1.0","simple-is":"~0.2.0","stringmap":"~0.2.0","stringset":"~0.2.0","tryor":"~0.1.0","esprima":"~1.0.0"},"keywords":["defs","scope","blockscope","block-scope","let","const","var","es6","transpile","transpiler","lint","linter"],"scripts":{"test":"node --harmony run-tests"},"bin":{"defs":"./defs"},"author":{"name":"Olov Lassus","email":"olov.lassus@gmail.com"},"license":"MIT","readmeFilename":"README.md","_id":"defs@0.3.0","dist":{"shasum":"4099c9bdd75d5e4bd061cdaf21d5d761c6cc1258","size":16649,"noattachment":false,"key":"/defs/-/defs-0.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/defs/download/defs-0.3.0.tgz"},"_resolved":"/tmp/defs.tgz.tgz","_from":"/tmp/defs.tgz.tgz","_npmVersion":"1.2.18","_npmUser":{"name":"olov","email":"olov.lassus@gmail.com"},"maintainers":[{"name":"olov","email":"olov.lassus@gmail.com"}],"directories":{},"publish_time":1373032021866,"_cnpm_publish_time":1373032021866,"_hasShrinkwrap":false},"0.2.1":{"name":"defs","version":"0.2.1","description":"Static scope analysis and transpilation of ES6 block scoped const and let variables, to ES3.","main":"defs-main.js","repository":{"type":"git","url":"https://github.com/olov/defs.git"},"dependencies":{"alter":"~0.1.0","simple-fmt":"~0.1.0","simple-is":"~0.2.0","stringmap":"~0.2.0","stringset":"~0.2.0","tryor":"~0.1.0","esprima":"~1.0.0"},"keywords":["defs","scope","blockscope","block-scope","let","const","var","es6","transpile","transpiler","lint","linter"],"scripts":{"test":"node --harmony run-tests"},"bin":{"defs":"./defs"},"author":{"name":"Olov Lassus","email":"olov.lassus@gmail.com"},"license":"MIT","readmeFilename":"README.md","_id":"defs@0.2.1","dist":{"shasum":"bba8bc3153d3d020a80fedcf62c082121938cbca","size":15681,"noattachment":false,"key":"/defs/-/defs-0.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/defs/download/defs-0.2.1.tgz"},"_resolved":"/tmp/defs.tgz.tgz","_from":"/tmp/defs.tgz.tgz","_npmVersion":"1.2.18","_npmUser":{"name":"olov","email":"olov.lassus@gmail.com"},"maintainers":[{"name":"olov","email":"olov.lassus@gmail.com"}],"directories":{},"publish_time":1367680287313,"_cnpm_publish_time":1367680287313,"_hasShrinkwrap":false},"0.2.0":{"name":"defs","version":"0.2.0","description":"Static scope analysis and transpilation of ES6 block scoped const and let variables, to ES3.","main":"defs-main.js","repository":{"type":"git","url":"https://github.com/olov/defs.git"},"dependencies":{"alter":"~0.1.0","simple-fmt":"~0.1.0","simple-is":"~0.2.0","stringmap":"~0.2.0","stringset":"~0.2.0","tryor":"~0.1.0","esprima":"~1.0.0"},"keywords":["defs","scope","blockscope","block-scope","let","const","var","es6","transpile","transpiler","lint","linter"],"scripts":{"test":"node --harmony run-tests"},"bin":{"defs":"./defs"},"author":{"name":"Olov Lassus","email":"olov.lassus@gmail.com"},"license":"MIT","readmeFilename":"README.md","_id":"defs@0.2.0","dist":{"shasum":"3cd734db5653924e1576fab8240daa12338bc84e","size":15155,"noattachment":false,"key":"/defs/-/defs-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/defs/download/defs-0.2.0.tgz"},"_resolved":"/tmp/defs.tgz","_from":"/tmp/defs.tgz","_npmVersion":"1.2.18","_npmUser":{"name":"olov","email":"olov.lassus@gmail.com"},"maintainers":[{"name":"olov","email":"olov.lassus@gmail.com"}],"directories":{},"publish_time":1366968837026,"_cnpm_publish_time":1366968837026,"_hasShrinkwrap":false},"0.1.2":{"name":"defs","version":"0.1.2","description":"Static scope analysis and transpilation of ES6 block scoped const and let variables, to ES3.","main":"defs-main.js","repository":{"type":"git","url":"https://github.com/olov/defs.git"},"dependencies":{"alter":"~0.1.0","simple-fmt":"~0.1.0","simple-is":"~0.2.0","stringmap":"~0.2.0","stringset":"~0.2.0","tryor":"~0.1.0","esprima":"~1.0.0"},"keywords":["defs","scope","blockscope","block-scope","let","const","var","es6","transpile","transpiler","lint","linter"],"scripts":{"test":"node --harmony run-tests"},"bin":{"defs":"./defs"},"author":{"name":"Olov Lassus","email":"olov.lassus@gmail.com"},"license":"MIT","readmeFilename":"README.md","_id":"defs@0.1.2","dist":{"shasum":"e6760350920587d49e7e9d70484963bf145cf118","size":13961,"noattachment":false,"key":"/defs/-/defs-0.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/defs/download/defs-0.1.2.tgz"},"_resolved":"/tmp/defs.tgz.tgz","_from":"/tmp/defs.tgz.tgz","_npmVersion":"1.2.18","_npmUser":{"name":"olov","email":"olov.lassus@gmail.com"},"maintainers":[{"name":"olov","email":"olov.lassus@gmail.com"}],"directories":{},"publish_time":1366792191922,"_cnpm_publish_time":1366792191922,"_hasShrinkwrap":false},"0.1.1":{"name":"defs","version":"0.1.1","description":"Static scope analysis and transpilation of ES6 block scoped const and let variables, to ES3.","main":"defs-main.js","repository":{"type":"git","url":"https://github.com/olov/defs.git"},"dependencies":{"alter":"~0.1.0","simple-fmt":"~0.1.0","simple-is":"~0.2.0","stringmap":"~0.2.0","stringset":"~0.2.0","tryor":"~0.1.0","esprima":"~1.0.0"},"keywords":["defs","scope","blockscope","block-scope","let","const","var","es6","transpile","transpiler","lint","linter"],"scripts":{"test":"node --harmony run-tests"},"bin":{"defs":"./defs"},"author":{"name":"Olov Lassus","email":"olov.lassus@gmail.com"},"license":"MIT","readmeFilename":"README.md","_id":"defs@0.1.1","dist":{"shasum":"7481d56e52dd8a226662a3b8db90e67701a90bc0","size":13960,"noattachment":false,"key":"/defs/-/defs-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/defs/download/defs-0.1.1.tgz"},"_resolved":"/tmp/defs.tgz.tgz","_from":"/tmp/defs.tgz.tgz","_npmVersion":"1.2.18","_npmUser":{"name":"olov","email":"olov.lassus@gmail.com"},"maintainers":[{"name":"olov","email":"olov.lassus@gmail.com"}],"directories":{},"publish_time":1366790782808,"_cnpm_publish_time":1366790782808,"_hasShrinkwrap":false},"0.1.0":{"name":"defs","version":"0.1.0","description":"defs","main":"defs-main.js","repository":{"type":"git","url":"https://github.com/olov/defs.git"},"dependencies":{"alter":"~0.1.0","simple-fmt":"~0.1.0","simple-is":"~0.2.0","stringmap":"~0.2.0","stringset":"~0.2.0","tryor":"~0.1.0","esprima":"~1.0.0"},"keywords":["defs","scope","blockscope","block-scope","let","const","var","es6","transpile","transpiler","lint","linter"],"scripts":{"test":"node --harmony run-tests"},"bin":{"defs":"./defs"},"author":{"name":"Olov Lassus","email":"olov.lassus@gmail.com"},"license":"MIT","readmeFilename":"README.md","_id":"defs@0.1.0","dist":{"shasum":"75df12c230eea23c66b51b4f0a60e846cb90bf83","size":13950,"noattachment":false,"key":"/defs/-/defs-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/defs/download/defs-0.1.0.tgz"},"_resolved":"/tmp/defs.tgz.tgz","_from":"/tmp/defs.tgz.tgz","_npmVersion":"1.2.18","_npmUser":{"name":"olov","email":"olov.lassus@gmail.com"},"maintainers":[{"name":"olov","email":"olov.lassus@gmail.com"}],"directories":{},"publish_time":1366784989713,"_cnpm_publish_time":1366784989713,"_hasShrinkwrap":false}},"readme":"# SO LONG AND THANKS FOR ALL THE BITS\n**defs is done. I recommend migrating to the TypeScript `tsc` compiler because\nit does what defs does as good or better, and it does much more.**\n\n\n# defs.js\nStatic scope analysis and transpilation of ES6 block scoped `const` and `let`\nvariables, to ES3.\n\nNode already supports `const` and `let` so you can use that today\n(run `node --harmony` and `\"use strict\"`). `defs.js` enables you to do the same\nfor browser code. While developing you can rely on the experimental support\nin Chrome (chrome://flags, check Enable experimental JavaScript). `defs.js` is\nalso a pretty decent static scope analyzer/linter.\n\nThe talk\n[LET's CONST together, right now (with ES3)](http://vimeo.com/66501924)\nfrom Front-Trends 2013\n([slides](http://blog.lassus.se/files/lets_const_together_ft2013.pdf)) includes\nmore information about `let`, `const` and `defs.js`. See also the blog post\n[ES3 <3 block scoped const and let => defs.js](http://blog.lassus.se/2013/05/defsjs.html).\n\n\n## Installation and usage\n    npm install -g defs\n\nThen run it as `defs file.js`. The errors (if any) will go to stderr,\nthe transpiled source to `stdout`, so redirect it like `defs file.js > output.js`.\nMore command line options are coming.\n\nThere's also a [Grunt](http://gruntjs.com/) plugin, see [grunt-defs](https://npmjs.org/package/grunt-defs).\n\nSee [BUILD.md](BUILD.md) for a description of the self-build and the browser bundle.\n\n## License\n`MIT`, see [LICENSE](LICENSE) file.\n\n\n## Changes\nSee [CHANGES.md](CHANGES.md).\n\n\n## Configuration\n`defs` looks for a `defs-config.json` configuration file in your current\ndirectory. If not found there, it searches parent directories until it hits `/`.\nYou may instead pass a custom `defs-config.json` using `--config`, i.e.\n`defs --config path/to/defs-config.json file.js > output.js`.\n\nExample `defs-config.json`:\n\n    {\n        \"environments\": [\"node\", \"browser\"],\n\n        \"globals\": {\n            \"my\": false,\n            \"hat\": true\n        },\n        \"loopClosures\": \"iife\",\n        \"disallowVars\": false,\n        \"disallowDuplicated\": true,\n        \"disallowUnknownReferences\": true\n    }\n\n`globals` lets you list your program's globals, and indicate whether they are\nwritable (`true`) or read-only (`false`), just like `jshint`.\n\n`environments` lets you import a set of pre-defined globals, here `node` and\n`browser`. These default environments are borrowed from `jshint` (see\n[jshint_globals/vars.js](https://github.com/olov/defs/blob/master/jshint_globals/vars.js)).\n\n`loopClosures` (defaults to `false`) can be set to \"iife\" to enable transformation\nof loop-closures via immediately-invoked function expressions.\n\n`disallowVars` (defaults to `false`) can be enabled to make\nusage of `var` an error.\n\n`disallowDuplicated` (defaults to `true`) errors on duplicated\n`var` definitions in the same function scope.\n\n`disallowUnknownReferences` (defaults to `true`) errors on references to\nunknown global variables.\n\n`ast` (defaults to `false`) produces an AST instead of source code\n(experimental).\n\n`stats` (defaults to `false`) prints const/let statistics and renames\n(experimental).\n\n`parse` (defaults to `null`) lets you provide a custom parse function if you\nuse defs as an API. By default it will use `require(\"esprima\").parse`.\n\n\n## Example\n\nInput `example.js`:\n\n```javascript\n\"use strict\";\nfunction fn() {\n    const y = 0;\n    for (let x = 0; x < 10; x++) {\n        const y = x * 2;\n        const z = y;\n    }\n    console.log(y); // prints 0\n}\nfn();\n```\n\nOutput from running `defs example.js`:\n\n```javascript\n\"use strict\";\nfunction fn() {\n    var y = 0;\n    for (var x = 0; x < 10; x++) {\n        var y$0 = x * 2;\n        var z = y$0;\n    }\n    console.log(y); // prints 0\n}\nfn();\n```\n\n\n## defs.js used as a library\n`npm install defs`, then:\n\n```javascript\nconst defs = require(\"defs\");\nconst options = {};\nconst src = \"const x = 1\";\nconst res = defs(src, options);\nassert(res.src === \"var x = 1\");\n\n// you can also pass an AST (with loc and range) instead of a string to defs\nconst ast = require(\"esprima\").parse(src, {loc: true, range: true});\nconst res = defs(ast, {ast: true}); // AST-in, AST-out\n// inspect res.ast\n```\n\nres object:\n\n    {\n        src: string // on success\n        errors: array of error messages // on errors\n        stats: statistics object (toStringable)\n        ast: transformed ast // when options.ast is set\n    }\n\n\n## Compatibility\n`defs.js` strives to transpile your program as true to ES6 block scope semantics as\npossible while being as maximally non-intrusive as possible.\n\nIt can optionally transform loop closures via IIFE's (when possible), if you include\n`\"loopClosures\": \"iife\"` in your `defs-config.json`. More info in\n[loop-closures.md](loop-closures.md).\n\nSee [semantic-differences.md](semantic-differences.md) for other minor differences.\n","_attachments":{},"homepage":"https://github.com/olov/defs#readme","bugs":{"url":"https://github.com/olov/defs/issues"},"license":"MIT"}