You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+22Lines changed: 22 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -69,6 +69,28 @@ However, I recommend using one of the pre-built binaries instead because it does
69
69
go install github.com/yoheimuta/protolint/cmd/protolint@latest
70
70
```
71
71
72
+
### Within JavaScript / TypeScript
73
+
74
+
You can use `protolint` using your nodejs package manager like `npm` or `yarn`.
75
+
76
+
```sh
77
+
$ npm install protolint --save-dev
78
+
```
79
+
80
+
This will add a reference to a development dependency to your local `package.json`.
81
+
82
+
During install, the [install.mjs](bdist/js/install.mjs) script will be called. It will download the matching `protolint` from github. Just like [@electron/get](https://github.com/electron/get/), you can bypass the download using the following environment variables:
83
+
84
+
| Environment Variable | Default value | Description |
Within the remote path, the archives from the [releases](https://github.com/yoheimuta/protolint/releases/latest/) page must be
0 commit comments