š¦ Scoped @xan105 packages are for my own personal use but feel free to use them.
Install / Runtime =================
$3
`` npm install @xan105/fs `
Compatibility
- Node āļø
API ===
ā ļø This module is only available as an ECMAScript module (ESM) starting with version 2.0.0.
Previous version(s) are CommonJS (CJS) with an ESM wrapper.
Named export
$3
Auto remove utf bom (string only).
$3
Parse JSON and remove utf bom if any.
$3
Create target parent dir if doesn't exist.
āļø Options:
- bom (default: false)
add utf bom (string only).
$3
Write JSON to file and return filePath for convenience.
āļø Options:
- pretty (default: true)
insert white space into the output JSON string for readability purposes.
- bigint2str (default: true)
convert bigint to string.
$3
Create target parent dir if doesn't exist.
$3
Create target parent dir if doesn't exist. Move on same drive otherwise copy to target and delete origin.
$3
$3
āļø Options:
- time: amount of time unit (default 1) - timeUnit: s|m|h|d|w|M|Y (default day) - younger: compare mode younger than (true) or older than (false/default)
$3
āļø Options:
- time: amount of time unit (default 1) - timeUnit: s|m|h|d|w|M|Y (default day)
$3
āļø Options:
- time: amount of time unit (default 1) - timeUnit: s|m|h|d|w|M|Y (default day))