This guide aims to get you up and running with Grasp in as little time as possible. If you want a more in depth introduction, check out the documentation.
- Install node.js.
- Install Grasp:
sudo npm install -g grasp.
grasp --helpto take a look at the help.
- Choose your favourite file and do
grasp if <your file>.js- you just found all the if statements in your file!
grasp if.test <your file>.js- now you’ve selected their tests!
grasp --help syntaxand choose another type of statement.
grasp <your statement type> <your file>.jsand search for that statement in your file.
- Finally, read the documentation for more information.