
Security News
Feross on TBPN: How North Korea Hijacked Axios
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.
Library to create and visit a JS object representation of JSON-LD graphs, that we call JS-LD. JS-LD objects respect JSON-LD syntax but all the links between resources are represented as actual links (they are actual JS graphs, while JSON-LD is always serialized as a tree).
To explore a graph in JSON-LD notation, the developer has to know the specific way in which it has been serialized. Conversely, as JS-LD objects they have only a possible serialization and can be explored in multiple ways.
npm install jsld
var jsld = require('jsld');
/**
* Creates a JS-LD graph representing a JSON-LD graph.
* The JS-LD graph is a JS representation based on a JSON-LD named map with
* every link added.
*
* @param jsonldInput the JSON-LD input graph.
* @param ctx the context to compact with.
* @param options object with options passed directly to jsonld.createNodeMap().
* @param callback(err, graph) callback function taking an error or the JS-LD graph.
*/
jsld.convert(jsonldInput, ctx, options, callback);
var jsldGraph = jsld.convert(jsonldGraph, jsonldContextToCompact, null, function(err, result) {
if (err) {
console.log(err);
} else if (result) {
...
}
}););
FAQs
Javascript linked representation of JSON-LD graphs
The npm package jsld receives a total of 5 weekly downloads. As such, jsld popularity was classified as not popular.
We found that jsld 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.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.

Security News
OpenSSF has issued a high-severity advisory warning open source developers of an active Slack-based campaign using impersonation to deliver malware.

Research
/Security News
Malicious packages published to npm, PyPI, Go Modules, crates.io, and Packagist impersonate developer tooling to fetch staged malware, steal credentials and wallets, and enable remote access.