1interface nodejs {
2 /// Returns the path to the Node binary used by Zed.
3 node-binary-path: func() -> result<string, string>;
4
5 /// Returns the latest version of the given NPM package.
6 npm-package-latest-version: func(package-name: string) -> result<string, string>;
7
8 /// Returns the installed version of the given NPM package, if it exists.
9 npm-package-installed-version: func(package-name: string) -> result<option<string>, string>;
10
11 /// Installs the specified NPM package.
12 npm-install-package: func(package-name: string, version: string) -> result<_, string>;
13}