node-extra-test
v1.0.1
Published
Provides many node related methods. For example: cp, etc ## usage method ``` npm install node-extra --save-dev yarn add node-extra --save-dev ``` ## Provide use method ### fs module --- 1. [isFileExists]: a sync method, juage file exist 2. [isDi
Downloads
11
Readme
node-extra
Provides many node related methods. For example: cp, etc
usage method
npm install node-extra --save-dev
yarn add node-extra --save-dev
Provide use method
fs module
- [isFileExists]: a sync method, juage file exist
- [isDirExists]: a sync method, juage folder exist
- [wContent]: a sync method, writes the contents to the specified file
- [rmFile]: a promise method, remove assign list
- [cpFile]: a promise method, The folder will be specified Copy to another directory
for example
const {fsUtils} = require('node-extra');
fsUtils.cpFile('/src', '/dist')