0.2.1 • Published 5 years ago
@determapp/projectstorage-filesystem v0.2.1
DetermApp-Projectstorage-Filesystem
This is an @determapp/projectstorage
which saves data in the filesystem.
API
import { createFilesystemStorage, getDirectoryStatus, initDirectory } from '@determapp/projectstorage-filesystem';
// creates a new project in the specified directory
await initDirectory('/path/to/directory');
// get the status of an directory
const status = await getDirectoryStatus('/path/to/directory');
// status is "invalid" | "project" | "no project" | "does not exist"
// this does never throw
const storageCreator = createFilesystemStorage('/path/to/directory');
// the storageCreator can be used at @determapp/projectmanager
Commands
npm run build
- builds this component
- executed as
prepare
hook