const NodeUtils = brackets.getModule("utils/NodeUtils")checks if Node connector is ready
Kind: global variable
Returns: boolean - returns true if it's ready, otherwise false
Generic node util APIs connector. see src-node/utils.js for node peer
Fetches text content from a URL This is only available in the native app
Kind: global function
| Param | Type |
|---|---|
| url | string |
| encoding | string |
Gets the version of the Phoenix binary This is only available in the native app
Retrieves the Linux OS flavor name This is only available in the native app on Linux
Opens a URL in the default browser. This is only available in the native app.
Kind: global function
| Param | Type |
|---|---|
| url | string |
| browserName | string |
Gets an environment variable's value This is only available in the native app
Kind: global function
| Param | Type |
|---|---|
| varName | string |
Runs ESLint on a file This is only available in the native app
Kind: global function
| Param | Type |
|---|---|
| text | string |
| fullFilePath | string |
| projectFullPath | string |
Runs ESLint on a file This is only available in the native app
Kind: global function
| Param | Type | Default | Description |
|---|---|---|---|
| cwd | string |
the working directory of terminal | |
| [usePowerShell] | boolean |
false |
Opens a file in the default application for its type on Windows, macOS, and Linux.
Kind: global function
Returns: Promise.<void> - - Resolves if the file/folder is opened successfully, rejects otherwise.
| Param | Type | Description |
|---|---|---|
| fullPath | string |
The path to the file/folder to open. |