@rdfjs/to-ntriples
Advanced tools
Comparing version 2.0.0 to 3.0.0
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', () => { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
10932
4
14
0
Yes
44