{"_id":"rocambole-token","_rev":"160942","name":"rocambole-token","description":"Helpers for rocambole AST token manipulation","dist-tags":{"latest":"1.2.1"},"maintainers":[{"name":"millermedeiros","email":""}],"time":{"modified":"2021-06-03T11:40:09.000Z","created":"2013-12-10T18:33:41.446Z","1.2.1":"2014-07-02T21:54:45.264Z","1.2.0":"2014-07-02T21:51:28.737Z","1.1.2":"2014-06-28T17:25:06.249Z","1.1.1":"2014-06-17T12:16:00.515Z","1.1.0":"2013-12-17T14:04:13.122Z","1.0.0":"2013-12-10T18:33:41.446Z"},"users":{},"author":{"name":"Miller Medeiros","email":"contact@millermedeiros.com","url":"http://blog.millermedeiros.com"},"repository":{"type":"git","url":"https://github.com/millermedeiros/rocambole-token.git"},"versions":{"1.2.1":{"name":"rocambole-token","version":"1.2.1","description":"Helpers for rocambole AST token manipulation","main":"./index.js","scripts":{"test":"jasmine-node test/"},"repository":{"type":"git","url":"https://github.com/millermedeiros/rocambole-token.git"},"keywords":["ast","token","rocambole"],"author":{"name":"Miller Medeiros","email":"contact@millermedeiros.com","url":"http://blog.millermedeiros.com"},"license":"MIT","bugs":{"url":"https://github.com/millermedeiros/rocambole-token/issues"},"homepage":"https://github.com/millermedeiros/rocambole-token","devDependencies":{"rocambole":"~0.2.3","jasmine-node":"~1.11.0"},"jshintConfig":{"node":true},"gitHead":"fc03674b38f288dc545db0a5b2bdfd2d96cab170","_id":"rocambole-token@1.2.1","_shasum":"c785df7428dc3cb27ad7897047bd5238cc070d35","_from":".","_npmVersion":"1.4.17","_npmUser":{"name":"millermedeiros","email":"miller@millermedeiros.com"},"maintainers":[{"name":"millermedeiros","email":""}],"dist":{"shasum":"c785df7428dc3cb27ad7897047bd5238cc070d35","size":3309,"noattachment":false,"key":"/rocambole-token/-/rocambole-token-1.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/rocambole-token/download/rocambole-token-1.2.1.tgz"},"directories":{},"publish_time":1404338085264,"_cnpm_publish_time":1404338085264,"_hasShrinkwrap":false},"1.2.0":{"name":"rocambole-token","version":"1.2.0","description":"Helpers for rocambole AST token manipulation","main":"./index.js","scripts":{"test":"jasmine-node test/"},"repository":{"type":"git","url":"https://github.com/millermedeiros/rocambole-token.git"},"keywords":["ast","token","rocambole"],"author":{"name":"Miller Medeiros","email":"contact@millermedeiros.com","url":"http://blog.millermedeiros.com"},"license":"MIT","bugs":{"url":"https://github.com/millermedeiros/rocambole-token/issues"},"homepage":"https://github.com/millermedeiros/rocambole-token","devDependencies":{"rocambole":"~0.2.3","jasmine-node":"~1.11.0"},"jshintConfig":{"node":true},"gitHead":"14ea67346baef9ea4d735aafc8a3edbe59accea1","_id":"rocambole-token@1.2.0","_shasum":"cf0a8f33112e4b37b63f326e70e4fe356d8e3da8","_from":".","_npmVersion":"1.4.17","_npmUser":{"name":"millermedeiros","email":"miller@millermedeiros.com"},"maintainers":[{"name":"millermedeiros","email":""}],"dist":{"shasum":"cf0a8f33112e4b37b63f326e70e4fe356d8e3da8","size":3305,"noattachment":false,"key":"/rocambole-token/-/rocambole-token-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/rocambole-token/download/rocambole-token-1.2.0.tgz"},"directories":{},"publish_time":1404337888737,"_cnpm_publish_time":1404337888737,"_hasShrinkwrap":false},"1.1.2":{"name":"rocambole-token","version":"1.1.2","description":"Helpers for rocambole AST token manipulation","main":"./index.js","scripts":{"test":"jasmine-node test/"},"repository":{"type":"git","url":"https://github.com/millermedeiros/rocambole-token.git"},"keywords":["ast","token","rocambole"],"author":{"name":"Miller Medeiros","email":"contact@millermedeiros.com","url":"http://blog.millermedeiros.com"},"license":"MIT","bugs":{"url":"https://github.com/millermedeiros/rocambole-token/issues"},"homepage":"https://github.com/millermedeiros/rocambole-token","devDependencies":{"rocambole":"~0.2.3","jasmine-node":"~1.11.0"},"jshintConfig":{"node":true},"gitHead":"587aab4cf074fa9e731f1fa2a31e2a6532a6f2b1","_id":"rocambole-token@1.1.2","_shasum":"3e552cb59fc73c15f18e4ec50ad1610b74aa0656","_from":".","_npmVersion":"1.4.17","_npmUser":{"name":"millermedeiros","email":"miller@millermedeiros.com"},"maintainers":[{"name":"millermedeiros","email":""}],"dist":{"shasum":"3e552cb59fc73c15f18e4ec50ad1610b74aa0656","size":3297,"noattachment":false,"key":"/rocambole-token/-/rocambole-token-1.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/rocambole-token/download/rocambole-token-1.1.2.tgz"},"directories":{},"publish_time":1403976306249,"_cnpm_publish_time":1403976306249,"_hasShrinkwrap":false},"1.1.1":{"name":"rocambole-token","version":"1.1.1","description":"Helpers for rocambole AST token manipulation","main":"./index.js","scripts":{"test":"jasmine-node test/"},"repository":{"type":"git","url":"https://github.com/millermedeiros/rocambole-token.git"},"keywords":["ast","token","rocambole"],"author":{"name":"Miller Medeiros","email":"contact@millermedeiros.com","url":"http://blog.millermedeiros.com"},"license":"MIT","bugs":{"url":"https://github.com/millermedeiros/rocambole-token/issues"},"homepage":"https://github.com/millermedeiros/rocambole-token","devDependencies":{"rocambole":"~0.2.3","jasmine-node":"~1.11.0"},"jshintConfig":{"node":true},"_id":"rocambole-token@1.1.1","dist":{"shasum":"57f97f18af4964ce8224bb48381d60e011ad4ec3","size":3298,"noattachment":false,"key":"/rocambole-token/-/rocambole-token-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/rocambole-token/download/rocambole-token-1.1.1.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"millermedeiros","email":"miller@millermedeiros.com"},"maintainers":[{"name":"millermedeiros","email":""}],"directories":{},"publish_time":1403007360515,"_cnpm_publish_time":1403007360515,"_hasShrinkwrap":false},"1.1.0":{"name":"rocambole-token","version":"1.1.0","description":"Helpers for rocambole AST token manipulation","main":"lib/token.js","scripts":{"test":"jasmine-node test/"},"repository":{"type":"git","url":"https://github.com/millermedeiros/rocambole-token.git"},"keywords":["ast","token","rocambole"],"author":{"name":"Miller Medeiros","email":"contact@millermedeiros.com","url":"http://blog.millermedeiros.com"},"license":"MIT","bugs":{"url":"https://github.com/millermedeiros/rocambole-token/issues"},"homepage":"https://github.com/millermedeiros/rocambole-token","devDependencies":{"rocambole":"~0.2.3","jasmine-node":"~1.11.0"},"jshintConfig":{"node":true},"readmeFilename":"README.md","_id":"rocambole-token@1.1.0","dist":{"shasum":"0f1fb3932404099bccc9b897d98f4fbf4a61f948","size":3292,"noattachment":false,"key":"/rocambole-token/-/rocambole-token-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/rocambole-token/download/rocambole-token-1.1.0.tgz"},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"millermedeiros","email":"miller@millermedeiros.com"},"maintainers":[{"name":"millermedeiros","email":""}],"directories":{},"publish_time":1387289053122,"_cnpm_publish_time":1387289053122,"_hasShrinkwrap":false},"1.0.0":{"name":"rocambole-token","version":"1.0.0","description":"Helpers for rocambole AST token manipulation","main":"lib/token.js","scripts":{"test":"jasmine-node test/"},"repository":{"type":"git","url":"https://github.com/millermedeiros/rocambole-token.git"},"keywords":["ast","token","rocambole"],"author":{"name":"Miller Medeiros","email":"contact@millermedeiros.com","url":"http://blog.millermedeiros.com"},"license":"MIT","bugs":{"url":"https://github.com/millermedeiros/rocambole-token/issues"},"homepage":"https://github.com/millermedeiros/rocambole-token","devDependencies":{"rocambole":"~0.2.3","jasmine-node":"~1.11.0"},"jshintConfig":{"node":true},"readmeFilename":"README.md","_id":"rocambole-token@1.0.0","dist":{"shasum":"b8c75af069925a525723177959800681dc5291cc","size":3285,"noattachment":false,"key":"/rocambole-token/-/rocambole-token-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/rocambole-token/download/rocambole-token-1.0.0.tgz"},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"millermedeiros","email":"miller@millermedeiros.com"},"maintainers":[{"name":"millermedeiros","email":""}],"directories":{},"publish_time":1386700421446,"_cnpm_publish_time":1386700421446,"_hasShrinkwrap":false}},"readme":"# rocambole-token\n\nHelpers to manipulate [rocambole](https://github.com/millermedeiros/rocambole)\nAST tokens.\n\n\n## Why?\n\nCreated mainly to be used by\n[esindent](https://github.com/millermedeiros/esindent/) and\n[esformatter](https://github.com/millermedeiros/esformatter/).\n\n\n## Important Notes\n\nRight now all methods ignores the `loc` and `range` info of the tokens, this is\n*by design* since updating the range and loc info on a large JS program\nmultiple times can be very expensive. It's *better* to write a separate tool to\n*sanitize* this info and that can be executed as a separate step.\n\nAlso important to note that right now rocambole doesn't add any reference on\nthe token itself to the nodes that contain that token, so if you remove a token\nthat happens to be the `startToken` or `endToken` of any node you might have\nsome conflict if you start manipulating the tokens based on the `nodes`,\ninstead of the `token` LinkedList. - the `node.startToken` might be *detached*\nfrom the LinkedList.\n\nTest coverage is pretty low so far, but since it was mostly extracted from\nesformatter the methods should work as expected. I started to write some tests\njust to show how I would do it but did not had the time to finish it...\n(ideally tests should be written before the implementation).\n\n\n## License\n\nReleased under the MIT License.\n\n","_attachments":{},"homepage":"https://github.com/millermedeiros/rocambole-token","bugs":{"url":"https://github.com/millermedeiros/rocambole-token/issues"},"license":"MIT"}