7.2.0 • Published 1 year ago
@file-services/directory v7.2.0
@file-services/directory
A file system wrapper that adds directory scoping to any IFileSystem
implementation.
Getting started
Install library in project:
npm i @file-services/directory
Then, use the programmatic API:
import { nodeFs } from '@file-services/node';
import { createDirectoryFs } from '@file-services/directory';
const directoryFs = createDirectoryFs(nodeFs, '/path/to/some/folder');
// will be written to /path/to/some/folder/file.js
directoryFs.writeFileSync('/file.js', 'SAMPLE');
// returns 'SAMPLE'
directoryFs.readFileSync('/file.js');
License
MIT
7.2.0
1 year ago
7.0.0
2 years ago
7.0.1
2 years ago
6.0.0
2 years ago
5.7.1
2 years ago
5.7.0
2 years ago
5.4.1
3 years ago
5.4.0
3 years ago
5.3.1
3 years ago
5.3.0
3 years ago
5.2.1
3 years ago
5.2.0
3 years ago
5.1.0
3 years ago
5.0.0
3 years ago
4.1.0
4 years ago
4.0.0
4 years ago
3.1.2
4 years ago
3.1.1
4 years ago
3.1.0
4 years ago
3.0.0
4 years ago
2.2.0
4 years ago
2.1.0
4 years ago
2.0.1
5 years ago
2.0.0
5 years ago
1.0.2
5 years ago
1.0.1
5 years ago
1.0.0
5 years ago