开发者社区> 镜像站> NPM> see
see
Grep inspired tool to find references inside JavaScript files.
Last updated 8 years ago by thlorenz .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install see 
SYNC missed versions from official npm registry.

see Build Status

Grep inspired tool to find references inside JavaScript files.

Installation

npm install -g see

Usage

see <search-term>

Current status

In development, minimal functionality (just prints matching lines so far).

Features it will have

  • when logging a match to the console, include the enclosing scope to provide context (i.e. show the entire function that contained the match instead of just the line on which the match was found)
  • to ignore matches found inside comments and/or strings
  • limit matches to function names, variable names, etc., only

Features it may have

  • syntax highlight matches
  • interactive mode supplementing cli
  • .see per project file for local defaults
  • .see per user file for global defaults

CLI options

  • --maxlines max num of lines per match (i.e. if containing function body is larger than that, we only print part of it)
  • --comments include matches found inside comments
  • --strings includes matches inside strings
  • --nowarn don't print warning when file was unparsable by acorn
  • --nocolor don't syntax highlight matches
  • --function match calls to functions and function declarations
  • --funcdec match function declarations only

Current Tags

  • 0.0.0                                ...           latest (8 years ago)

1 Versions

  • 0.0.0                                ...           8 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (4)
Dev Dependencies (6)
Dependents (0)
None