npm

Need private packages and team management tools?Check out npm Orgs. »

@grial/connector-fs

1.0.1 • Public • Published

@grial/connector-fs

Grial datasource connector for the file system.

Required enviroment variables

None

Usage

Install it

npm i @grial/connector-fs

Add it to your connectors.js files

exports.fs = require('@grial/connector-fs')

API

write(filePath: string, data: Object, options: Object | string = 'utf8'): string

Write a new file to the specified file path with the given data.

read(filePath: string, options: Object | string = 'utf8'): string

Read a file from the disk.

delete(filePath: string): boolean

Delete the specified file from disk

check(filePath: string): boolean

Check the the specified file exists

install

npm i @grial/connector-fs

Downloadsweekly downloads

3

version

1.0.1

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability