Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New: Util chromium-finder #2264

Merged
merged 1 commit into from
Apr 18, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
13 changes: 13 additions & 0 deletions packages/utils/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,19 @@ and exception.
* `isTextMediaType`: Check if a mime-type represents a text-based
resource.

### chromiumFinder

* `Browser`: An enum with the Chromium based browsers supported: Chrome,
Chromium, and Edge.
* `getInstallationPath`: Searchs for a valid Chromium browser from the ones
supported. The current priority list is:
* `Chrome Canary`, `Chrome`, `Chromium`, `Edge Canary`, `Edge Dev` (`Edge`
only on `win32` platforms). A user can also pass the browser to use
(`Chrome`, `Chromium`, `Edge`) via the `options` parameter
(`options.browser`) or a `path` to the executable (`options.browserPath`) to
use (`getInstallationPath` will only verify it exists, not if it's actually
a valid target).

### dom

* `createHTMLDocument`: Create an HTMLDocument object from an string.
Expand Down
3 changes: 2 additions & 1 deletion packages/utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"content-type": "^1.0.4",
"debug": "^4.1.1",
"file-url": "^3.0.0",
"is-wsl": "^1.1.0",
"lodash": "^4.17.11",
"npm-registry-fetch": "^3.9.0",
"parse5": "^5.1.0",
Expand Down Expand Up @@ -65,7 +66,7 @@
"license": "Apache-2.0",
"main": "./dist/src/index.js",
"name": "@hint/utils",
"nyc": {
"nyc": {
"branches": 75,
"extends": "../../.nycrc",
"include": [
Expand Down