README
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 nodejs
<script type="module">
import artedUtils from 'https://cdn.skypack.dev/@arted/utils';
</script>
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');
}