Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@rdfjs/to-ntriples

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rdfjs/to-ntriples - npm Package Compare versions

Comparing version 2.0.0 to 3.0.0

.github/workflows/test.yaml

16

index.js

@@ -1,8 +0,8 @@

const blankNode = require('./lib/blankNode.js')
const dataset = require('./lib/dataset.js')
const defaultGraph = require('./lib/defaultGraph.js')
const literal = require('./lib/literal.js')
const namedNode = require('./lib/namedNode.js')
const quad = require('./lib/quad.js')
const variable = require('./lib/variable.js')
import blankNode from './lib/blankNode.js'
import dataset from './lib/dataset.js'
import defaultGraph from './lib/defaultGraph.js'
import literal from './lib/literal.js'
import namedNode from './lib/namedNode.js'
import quad from './lib/quad.js'
import variable from './lib/variable.js'

@@ -46,2 +46,2 @@ function toNT (term) {

module.exports = toNT
export default toNT

@@ -5,2 +5,2 @@ function blankNode (blankNode) {

module.exports = blankNode
export default blankNode

@@ -5,2 +5,2 @@ function dataset (dataset, toNT) {

module.exports = dataset
export default dataset

@@ -5,2 +5,2 @@ function defaultGraph () {

module.exports = defaultGraph
export default defaultGraph

@@ -1,2 +0,2 @@

const namedNode = require('./namedNode.js')
import namedNode from './namedNode.js'

@@ -39,2 +39,2 @@ const echarRegEx = /["\\\\\n\r]/

module.exports = literal
export default literal

@@ -5,2 +5,2 @@ function namedNode (namedNode) {

module.exports = namedNode
export default namedNode

@@ -10,2 +10,2 @@ function quad (quad, toNT) {

module.exports = quad
export default quad

@@ -5,2 +5,2 @@ function variable (variable) {

module.exports = variable
export default variable
{
"name": "@rdfjs/to-ntriples",
"version": "2.0.0",
"version": "3.0.0",
"description": "Converts RDF/JS Terms, Quads and Datasets to N-Triple strings",
"type": "module",
"main": "index.js",
"scripts": {
"coverage": "codecov",
"test": "stricter-standard && c8 --reporter=lcov --reporter=text mocha"

@@ -26,10 +26,8 @@ },

"homepage": "https://github.com/rdfjs-base/to-ntriples",
"dependencies": {},
"devDependencies": {
"@rdfjs/data-model": "^1.3.0",
"c8": "^7.7.3",
"codecov": "^3.8.2",
"mocha": "^9.0.1",
"stricter-standard": "^0.2.0"
"@rdfjs/data-model": "^2.0.1",
"c8": "^9.1.0",
"mocha": "^10.3.0",
"stricter-standard": "^0.3.0"
}
}
# @rdfjs/to-ntriples
[![Build Status](https://travis-ci.org/rdfjs/to-ntriples.svg?branch=master)](https://travis-ci.org/rdfjs/to-ntriples)
[![build status](https://img.shields.io/github/actions/workflow/status/rdfjs-base/to-ntriples/test.yaml?branch=master)](https://github.com/rdfjs-base/to-ntriples/actions/workflows/test.yaml)
[![npm version](https://img.shields.io/npm/v/@rdfjs/to-ntriples.svg)](https://www.npmjs.com/package/@rdfjs/to-ntriples)

@@ -12,4 +10,4 @@

```javascript
const rdf = require('@rdfjs/data-model')
const toNT = require('@rdfjs/to-ntriples')
import rdf from '@rdfjs/data-model'
import toNT from '@rdfjs/to-ntriples'

@@ -16,0 +14,0 @@ // convert a Term/Literal to a N-Triple string (output: "example"@en)

@@ -1,5 +0,5 @@

const { strictEqual, throws } = require('assert')
const rdf = require('@rdfjs/data-model')
const { describe, it } = require('mocha')
const toNT = require('../index.js')
import { strictEqual, throws } from 'node:assert'
import rdf from '@rdfjs/data-model'
import { describe, it } from 'mocha'
import toNT from '../index.js'

@@ -6,0 +6,0 @@ describe('@rdfjs/to-ntriples', () => {

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