/rdf-utils-fs

RDFJS file system utils

Primary LanguageJavaScript

rdf-utils-fs

Build Status npm version

File system utils for RDF/JS.

Usage

Each util function can be loaded as property from the main module or by loading only the file with the same name.

Example

Loading the function from the main module:

const resource = require('rdf-utils-fs').fromFile

Loading the function from the file with the function name:

const resource = require('rdf-utils-fs/fromFile')

Functions

fromFile(filename, options)

Returns a quad stream for the given filename.

async toFile(stream, filename, options)

Writes the given quad stream to filename.