Ainthe Kitchen

Results 37 issues of Ainthe Kitchen

It would be super sweet yo have option to do something like this: eclipse.exe -application org.eclipsescript scriptFile="./importProject.eclipse.js" if the plugin is providing it would be super cool to automate eclipse...

I would expect this to work: echo "let a=10,o={a}" | grasp 'prop[shorthand=true]' $ echo "let a=10,o={a}" | acorn { "type": "Program", "start": 0, "end": 15, "body": [ { "type": "VariableDeclaration",...

Problem of Flex or Grasp ? Seems like Grasp problem to me: Can anyone test standalone Flex please ? This fails: echo "x={};y={...x}" | grasp -s 'program' Cannot read property...

when grasp is using flow parser , the AST returns ranges and getRaw returns incorrect match. See test case. This is eather bug in flow-parser or bad interpretation of range...

Documentation, parser page https://www.graspjs.com/faq/ says: Why does Grasp use Acorn rather than Esprima to parse JS? Esprima and Acorn are both JavaScript parsers that output in the Mozilla SpiderMonkey AST...

please can you provide example how to use all parameters from CLI and override only replaceFunc ? its seems impossible to me.

docs

echo "var x={a:10,b:20}" | grasp -s "prop[key=#b]" -R '' var x={a:10,} leaves unexpected , any ideas ?

function test() { ``` // unrem this and run: grasp 'if[consequent=:not(block)]' -r samples/if/s-query-problem.js // you will get Cannot read property 'nodes' of undefined // switch (propName) { // case "1":...

fails with: Cannot read property 'type' of null any suggestions ? how to find if, else with single boolean returns ? echo 'function _test(x){ if(x){ return true; } } function...

grasp -e 'console.**(**[value~=/^Example/],__,$_)'