Socket
Socket
Sign inDemoInstall

microdata-node

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

microdata-node - npm Package Compare versions

Comparing version 0.1.3 to 0.1.4

4

package.json
{
"name": "microdata-node",
"version": "0.1.3",
"description": "Cheerio based microdata parser",
"version": "0.1.4",
"description": "Microdata to json and json-ld parser",
"main": "lib",

@@ -6,0 +6,0 @@ "scripts": {

@@ -100,6 +100,10 @@ microdata-node

`config.base`: Base url to resolve url properties against.
`config.registry`: The [registry](http://www.w3.org/TR/microdata-rdf/#dfn-registry) associates a URI prefix with one or more key-value pairs denoting processor behavior.
`config.useRdfType`: (default `false`) If set to true, `rdf:type` predicates won't be converted to `@type` properties.
`config.strict`: (default `false`) Parse strictly according to spec. Does not try to be forgiving of malformed microdata.
`config.useNativeTypes`: (default `true`) Converts literals that are numbers or booleans to their corresponding JSOn type.

@@ -23,3 +23,3 @@

} else {
if (n3.Util.isUri(n3Object)) {
if (n3.Util.isIRI(n3Object)) {
object.id = expandPrefixedName(n3Object, prefixes);

@@ -45,3 +45,3 @@ } else {

var parser = n3.Parser({
documentURI: base
documentIRI: base
});

@@ -48,0 +48,0 @@ parser.parse(turtle, function (error, triple, prefixes) {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc