npm install --save @aotu/fs
Or with yarn
yarn
yarn add @aotu/fs
const { walk, flatten } = require('@aotu/fs'); // -OR- const FS = require('@aotu/fs'); walk(...) flatten(...) // -OR- FS.walk(...) FS.flatten(...)