Directory As Object
This package can serialize and deserialize directory with files into\from JS object
- It scans directory recursively
- It can update existing files. Including deleting those that have correstponding property set to
null
Usage
Reading from directory
const dirAsObject = rootPath: '/some/path';dirAsObject;
Writing to directory
const dirAsObject = rootPath: '/some/path';dirAsObject;;
Deleting files
The following code will delete /some/path/test.js
const dirAsObject = rootPath: '/some/path';dirAsObject;;