Utils
Utils for Javascript/Nodejs
Installation
npm
$ npm install @arted/utils
or yarn
$ yarn add @arted/utils
Usage
const fs = '@arted/utils/fs';
// 获取文件状态
async function getStats() {
return await fs.stat('path/to/file.json');
}
Utils for Javascript/Nodejs
npm
$ npm install @arted/utils
or yarn
$ yarn add @arted/utils
const fs = '@arted/utils/fs';
// 获取文件状态
async function getStats() {
return await fs.stat('path/to/file.json');
}
If you find any bugs or have a feature request, please open an issue on github!
The npm package download data comes from npm's download counts api and package details come from npms.io.