search-prototype.js

1.0.3 • Public • Published

search-prototype.js Build Status

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.

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Author

License

MIT © azu

Package Sidebar

Install

npm i search-prototype.js

Weekly Downloads

0

Version

1.0.3

License

MIT

Last publish

Collaborators

  • azu