Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions pages/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,12 @@

# Application Programming Interface

JSHint exposes a JavaScript API for programmatic access in environments like
web browsers and [Node.js](https://nodejs.org).
JSHint exposes a JavaScript API for programmatic interaction. When the source
file is included in web browser environments via a `<script>` tag, this API is
available via a global binding named `JSHINT` (i.e. `window.JSHINT`). When
JSHint is loaded in as a CommonJS module (for example, in
[Node.js](https://nodejs.org)), the API is available via the `JSHINT` property
of that module (i.e. `require('jshint').JSHINT`).

## `JSHINT( source, options, predef )`

Expand Down