📒⛓ file-chain
fluent api for File operations, with concurrency safe read/writes & plugins
📦 install
yarn add file-chainnpm i file-chain --save
👽 use
const File = // can also import destructured// const {File} = require('file-chain')
📘 examples
const datas = File dir__dirname // optional, is done for you const stats = datas // read stats // delete file // stats are already loaded
👣 dir
const file = File dir__dirname // alpha...omega
🔌 plugins
const plugin = { thiscontents = 'magic' return this } const file = file dir__dirname
🔗 more
- for json, json-chain is used
- for resolving paths (unless .dir is used), flipfind is used
- for all fs operations, flipfile is used
- for all chaining, flipchain is used