app-path:获取应用程序的路径(macOS)

时间:2021-05-12 09:15:44
【文件属性】:
文件名称:app-path:获取应用程序的路径(macOS)
文件大小:9KB
文件格式:ZIP
更新时间:2021-05-12 09:15:44
JavaScript 应用程序路径 获取应用程序的路径(macOS) 安装 $ npm install app-path 用法 import appPath from 'app-path' ; console . log ( await appPath ( 'Safari' ) ) ; //=> '/Applications/Safari.app' console . log ( await appPath ( 'com.apple.Safari' ) ) ; //=> '/Applications/Safari.app' console . log ( appPath . sync ( 'Safari' ) ) ; //=> '/Applications/Safari.app' 原料药 appPath(appName) 返回Promise其中包含appName指定的应用程序的路径。 在除ma
【文件预览】:
app-path-main
----.gitignore(23B)
----main.m(514B)
----package.json(1KB)
----.npmrc(19B)
----index.js(1015B)
----test.js(711B)
----.github()
--------workflows()
----license(1KB)
----readme.md(834B)
----index.test-d.ts(159B)
----main(113KB)
----.gitattributes(19B)
----.editorconfig(175B)
----index.d.ts(972B)

网友评论