Search usage of prototype.js in your codes.
We can found the code that use Prototype.js.
This tool is based on grasp that can search the code by AST. It can search the code exactly.
This tool use prototype.js's API reference as search index.
This tool can found the prototype.js extensible API like Function#curry
in your code.
Install with npm:
npm install search-prototype.js
Usage
$ search-prototype.js <file-path>
Examples
$ search-prototype.js ./your.js
> search-prototype.js test/search-prototype-test.js
# Found "call[callee=#$]"
2: var item = $('sample');
# Found "call[callee=#$]"
7:$("test");
# Found "__.getHeight(__)"
3: var ret = Element.getHeight(item);
# Found "Element.getHeight(__)"
3: var ret = Element.getHeight(item);
# Found "var __ = Class.create"
9:var cc = Class.create;
See Releases page.
Install devDependencies and Run npm test
:
npm i -d && npm test
Pull requests and stars are always welcome.
For bugs and feature requests, please create an issue.
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
MIT © azu