add `input` as option when using grasp as a lib

instead of having to implement fs or process.stdin, you can just use the `input` option with a string when calling grasp to use that input instead