{"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","tarball":"http://registry-npm.ywwl.com/rocambole-token/download/rocambole-token-1.1.1.tgz","integrity":"sha512-vPxUn/VuusFOyje/8QED7LowPW9+ZmsnLS5o9o3Vhh1hluTU8a8KVmw9FZAy4xUBIz5sIasy3jio5IyeI6ch2Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFSAs9vapWSk8vYizaM/sOsPMgD7pn1//N7KHgvRGtqqAiBXwI7kykqYcOssPy+1OTjatouzt+myslojJH8CAy/4zQ=="}],"size":3298,"noattachment":false,"key":"/rocambole-token/-/rocambole-token-1.1.1.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"millermedeiros","email":"miller@millermedeiros.com"},"maintainers":[{"name":"millermedeiros","email":"miller@millermedeiros.com"}],"directories":{},"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","publish_time":1403007360515,"_cnpm_publish_time":1403007360515,"dist-tags":{"latest":"1.2.1"}}