1.0.3 • Published 7 years ago
search-prototype.js v1.0.3
search-prototype.js
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.
Search prototype.js API
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
Install with npm:
npm install search-prototype.js
Usage
Usage
$ search-prototype.js <file-path>
Examples
$ search-prototype.js ./your.js
Example
> 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;
Changelog
See Releases page.
Running tests
Install devDependencies and Run npm test
:
npm i -d && npm test
Contributing
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
Author
License
MIT © azu