0.0.1 • Published 6 years ago
m-fs-touch v0.0.1
m-touch
'm-touch' is a command line to format file or directory name with date prefix.
Usages
Installation
npm i m-touch -g
Create file with default date format:
m-touch -f filename => today-filename, such as 20180925-test.js
m-touch --file filename
m-touch -f filename --format YMD => formatType-filename
m-touch --file filename --format YMDhms
Create directory with default date format:
m-touch -d dirName => today-dirName, such as 20180925-src
m-touch --dir dirName
m-touch -d dirName --format YMD => formatType-dirName
m-touch --dir dirName --format YMDhms
YMDhms
Y: fullYear, such as 2018
M: month, such as 12
D: Day, such as 15
h: hour, such as 14
m: minute, such as 50
s: second, such as 50
Contact
@author Mask @email 923746590@qq.com
0.0.1
6 years ago