jsonion
Version:
A lightweight JSON file-based database with nested data access and manipulation capabilities.
24 lines • 778 B
TypeScript
import { db } from "./db.js";
declare class manager {
private baseDir?;
private allowedOperations;
constructor(baseDir?: string);
private validateOperation;
create(filePath: string, initialData?: object): db;
open(filePath: string): db;
delete(filePath: string): void;
rename(oldPath: string, newPath: string): void;
exists(filePath: string): boolean;
list(directory?: string): string[];
copy(sourcePath: string, destPath: string): void;
info(filePath: string): {
path: string;
size: number;
entries: number;
modified: Date;
};
merge(sourcePaths: string[], destPath: string): void;
listRecursive(directory?: string): string[];
}
export { manager };
//# sourceMappingURL=manager.d.ts.map