Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@rdf-esm/formats-common
Advanced tools
This module bundles parsers and serializers for the most common RDF formats. Instances of SinkMap are used to handle different media types.
This package is an ES Modules fork of @rdfjs/formats-common.
It uses a lazy version of SinkMap
to dynamically load the sinks.
This way bundlers like webpack will create chunks for them and only load them when they are first needed.
The formats object has a parsers
and serializers
property.
Each of it is an instance of SinkMap
with the most common RDF media types as key.
const formats = require('@rdfjs/formats-common')
const Readable = require('stream').Readable
const input = new Readable({
read: () => {
input.push(`
PREFIX s: <http://schema.org/>
[] a s:Person ;
s:jobTitle "Professor" ;
s:name "Jane Doe" ;
s:telephone "(425) 123-4567" ;
s:url <http://www.janedoe.com> .
`)
input.push(null)
}
})
const output = formats.parsers.import('text/turtle', input)
output.on('data', quad => {
console.log(`quad: ${quad.subject.value} - ${quad.predicate.value} - ${quad.object.value}`)
})
output.on('prefix', (prefix, ns) => {
console.log(`prefix: ${prefix} ${ns.value}`)
})
FAQs
Parsers and serializers for common RDF formats
The npm package @rdf-esm/formats-common receives a total of 712 weekly downloads. As such, @rdf-esm/formats-common popularity was classified as not popular.
We found that @rdf-esm/formats-common demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.