【文件属性】:
文件名称:touchp:mkdir -p 满足触摸
文件大小:3KB
文件格式:ZIP
更新时间:2021-07-04 20:33:02
JavaScript
触摸屏
像mkdir -p ,但有touch
安装
npm install touchp
用法
var touchp = require ( 'touchp' ) ;
touchp ( 'some/path/that/may/not/exist.txt' , function ( err , alreadyExisted ) {
console . log ( "File " + ( alreadyExisted ? 'already exists' : 'was created' ) ) ;
} ) ;
var existedBefore = touchp . sync ( 'some/other/path/that/may/not/exist.txt' )
米克迪普
Touchp 还公开了因此您可以使用它的依赖项而无需自己安装它。
var mkdirp = require
【文件预览】:
touchp-master
----index.js(874B)
----package.json(669B)
----test()
--------touchp-test.js(2KB)
----Readme.md(565B)
----.gitignore(14B)
----History.md(165B)