【文件属性】:
文件名称:current-path:在Finder(macOS)和Explorer(Windows)中获取当前目录的路径
文件大小:89KB
文件格式:ZIP
更新时间:2021-05-26 08:00:31
JavaScript
电流路径
在Finder (macOS)和Explorer (Windows)中获取当前目录的路径
用法
$ npm install --save current-path
const currentPath = require ( 'current-path' ) ;
currentPath ( ) . then ( path => {
console . log ( path ) ;
//=> '/Users/sindresorhus/dev/current-path'
} ) ;
原料药
currentPath()
返回Finder或Explorer中当前目录的Promise。
有关的
此模块的CLI
执照
麻省理工学院:copyright:
【文件预览】:
current-path-main
----.gitattributes(12B)
----.github()
--------workflows()
----test.js(89B)
----license(1KB)
----.editorconfig(190B)
----.gitignore(13B)
----index.js(568B)
----readme.md(576B)
----package.json(862B)
----vendor()
--------cdwhere()