@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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i @grial/connector-fs

Weekly Downloads

0

Version

1.0.1

License

MIT

Last publish

Collaborators

  • sergiodxa