<commit_before># atom-ternjs package

Javascript code intelligence for atom with [Tern](http://ternjs.net/).
Uses suggestion provider by [autocomplete-plus](https://github.com/atom-community/autocomplete-plus).

# Installation

Make sure <a href="https://nodejs.org">Node.js</a> is installed and the PATH variable is set.
Make sure <a href="http://git-scm.com">GIT</a> is installed and the PATH variable is set.

In your project root create a file named .tern-project

* With default config via menu (Packages -> Atom Ternjs -> Create default .tern-project) or by adding it manually. See docs @ http://ternjs.net/doc/manual.html#configuration.
* Check path in loadEagerly
* Restart the server via Packages -> Atom Ternjs -> Restart server

Example .tern-project file (customize to your own needs):
```
{
  "libs": [
    "browser",
    "ecma5",
    "ecma6",
    "jquery"
  ],
  "loadEagerly": [
    "absolute/or/relative/path/to/your/js/**/*.js"
  ],
  "dontLoad": [
    "absolute/or/relative/path/to/your/js/**/*.js"
  ],
  "plugins": {
    "complete_strings": {},
    "node": {},
    "angular": {},
    "requirejs": {},
    "doc_comment": {
      "fullDocs": true
    }
  }
}
```
##### libs
* browser: completion for vanilla js (optional)
* ecma5: es5 (optional)
* ecma6: es6 (optional)<commit_msg>edit readme, ~/.tern-config default if no project config<commit_after># atom-ternjs package

Javascript code intelligence for atom with [Tern](http://ternjs.net/).
Uses suggestion provider by [autocomplete-plus](https://github.com/atom-community/autocomplete-plus).

# Installation

Make sure <a href="https://nodejs.org">Node.js</a> is installed and the PATH variable is set.
Make sure <a href="http://git-scm.com">GIT</a> is installed and the PATH variable is set.

In your project root create a file named .tern-project

* With default config via menu (Packages -> Atom Ternjs -> Create default .tern-project) or by adding it manually. See docs @ http://ternjs.net/doc/manual.html#configuration.
* Check path in loadEagerly
* Restart the server via Packages -> Atom Ternjs -> Restart server

If a root file named .tern-project is not found ~/.tern-config serves as a default.

Example .tern-project file (customize to your own needs):
```
{
  "libs": [
    "browser",
    "ecma5",
    "ecma6",
    "jquery"
  ],
  "loadEagerly": [
    "absolute/or/relative/path/to/your/js/**/*.js"
  ],
  "dontLoad": [
    "absolute/or/relative/path/to/your/js/**/*.js"
  ],
  "plugins": {
    "complete_strings": {},
    "node": {},
    "angular": {},
    "requirejs": {},
    "doc_comment": {
      "fullDocs": true
    }
  }
}
```
##### libs
* browser: completion for vanilla js (optional)
* ecma5: es5 (optional)
* ecma6: es6 (optional)
{'fraction_non_alphanumeric': 0.15847395451210564, 'fraction_numerical': 0.004402054292002935, 'mean_word_length': 3.4851973684210527, 'pattern_counts': {'":': 20, '<': 11, '<?xml version=': 0, '>': 19, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, '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': '5463558', 'n_tokens_mistral': 928, 'n_tokens_neox': 900, 'n_words': 258}