🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

rdf-utils-fs

Package Overview
Dependencies
Maintainers
0
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rdf-utils-fs

RDF/JS file system utils

3.0.1
latest
Source
npm
Version published
Weekly downloads
18K
-31.13%
Maintainers
0
Weekly downloads
 
Created
Source

rdf-utils-fs

build status npm version

File system utils for RDF/JS.

Please consider switching to the @rdfjs/io features of rdf-ext, as it supports the same features and is even richer in functionality.

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:

import { fromFile } from 'rdf-utils-fs'
import { toFile } from 'rdf-utils-fs'

Loading the function from the file with the function name:

import fromFile from 'rdf-utils-fs/fromFile.js'
import toFile from 'rdf-utils-fs/toFile.js'

Functions

fromFile(filename, options)

Returns a quad stream for the given filename.

async toFile(stream, filename, options)

Writes the given quad stream to filename.

Keywords

rdf

FAQs

Package last updated on 14 Mar 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts