<commit_before># grejs [![Build Status](https://secure.travis-ci.org/thlorenz/grejs.png)](http://travis-ci.org/thlorenz/grejs)

[Grep](http://en.wikipedia.org/wiki/Grep) inspired tool to find references inside JavaScript files.

[grejs](http://www.urbandictionary.com/define.php?term=grejs) are supposed to be extraterrestial intelligent non human
beings who are captured and held in secret labs deep within Area 51 and perhaps the Cheyenne Mtn base.

## Current status

In development, not functional yet.

## 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
- .grejs per project file for local defaults
- .grejs 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

<commit_msg>updated readme to new name<commit_after># see [![Build Status](https://secure.travis-ci.org/thlorenz/see.png)](http://travis-ci.org/thlorenz/see)

[Grep](http://en.wikipedia.org/wiki/Grep) inspired tool to find references inside JavaScript files.

## Current status

In development, not functional yet.

## 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


{'fraction_non_alphanumeric': 0.08518253400143164, 'fraction_numerical': 0.0007158196134574087, 'mean_word_length': 4.147329650092081, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 1, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4761093', 'n_tokens_mistral': 757, 'n_tokens_neox': 742, 'n_words': 358}