{"_id":"@rdfjs/io","_rev":"5-c45e13e72406f011cffb9c62ec9d7a7c","name":"@rdfjs/io","dist-tags":{"latest":"1.2.0"},"versions":{"1.0.0":{"name":"@rdfjs/io","version":"1.0.0","keywords":["input","io","output","rdf","rdfjs"],"author":{"url":"https://www.bergnet.org/people/bergi/card#me","name":"Thomas Bergwinkl","email":"bergi@axolotlfarm.org"},"license":"MIT","_id":"@rdfjs/io@1.0.0","maintainers":[{"name":"bergos","email":"bergi@bergnet.org"}],"homepage":"https://github.com/rdfjs-base/io","bugs":{"url":"https://github.com/rdfjs-base/io/issues"},"dist":{"shasum":"9fe1f88e7710632d3ce615271c8f8f771374e5da","tarball":"https://registry.npmjs.org/@rdfjs/io/-/io-1.0.0.tgz","fileCount":20,"integrity":"sha512-+yBzq3Tlrw7vd4NFTdKfKjtJi+PiYi5jLqGwNh3H/kqrYBQOK3iuZuUAT8mpIAPNx/ZTs0+egwGcP1Felh79KA==","signatures":[{"sig":"MEUCIQDax9zjaSe7jmZdJvIyeO0V8/VfXu+gW2Sys3gm+p4knAIgEvg4z6XvgaBPOiRUoJKZXQu6AtnFyufdD0BW6EwQw4I=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":37573},"main":"index.js","type":"module","gitHead":"727c81fbe163d2e74fb8b43c1e70e88168dec121","scripts":{"test":"stricter-standard && c8 --reporter=lcov --reporter=text-summary mocha"},"_npmUser":{"name":"bergos","email":"bergi@bergnet.org"},"repository":{"url":"git+https://github.com/rdfjs-base/io.git","type":"git"},"_npmVersion":"8.19.3","description":"I/O operations for RDF/JS streams and datasets","directories":{},"_nodeVersion":"18.13.0","dependencies":{"duplex-to":"^2.0.0","stream-chunks":"^1.0.0","readable-stream":"^4.4.2"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^8.0.1","mocha":"^10.2.0","rdf-test":"^0.1.0","is-stream":"^3.0.0","@rdfjs/dataset":"^2.0.1","@rdfjs/formats":"^4.0.0","@rdfjs/data-model":"^2.0.1","stricter-standard":"^0.3.0","@rdfjs/environment":"^1.0.0","@rdfjs/to-ntriples":"^2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/io_1.0.0_1700860802556_0.46436237748850906","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"@rdfjs/io","version":"1.1.0","keywords":["input","io","output","rdf","rdfjs"],"author":{"url":"https://www.bergnet.org/people/bergi/card#me","name":"Thomas Bergwinkl","email":"bergi@axolotlfarm.org"},"license":"MIT","_id":"@rdfjs/io@1.1.0","maintainers":[{"name":"bergos","email":"bergi@bergnet.org"}],"homepage":"https://github.com/rdfjs-base/io","bugs":{"url":"https://github.com/rdfjs-base/io/issues"},"dist":{"shasum":"751adca03999aac6c87977853e134593ccd20c4d","tarball":"https://registry.npmjs.org/@rdfjs/io/-/io-1.1.0.tgz","fileCount":21,"integrity":"sha512-OUVb14wNvba25RInxp7Fe3HRY+z35ABUb+KsP81IR4O3k3+CHMTq2wBgEL83vlloPG83SCb5LoQrvqKoXiswRA==","signatures":[{"sig":"MEUCIQD4YAYElBqFd2SDE1Hn8FrOVgOlTMKgPA/cYy5fR9hZogIgT/f+kDwZkl0hBkXEsnJMtYiTdlqZeOAWTFNwDiHso3Y=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":39093},"main":"index.js","type":"module","gitHead":"0128023360f241a8cc87529240c308daa7ab863e","scripts":{"test":"stricter-standard && c8 --reporter=lcov --reporter=text-summary mocha"},"_npmUser":{"name":"bergos","email":"bergi@bergnet.org"},"repository":{"url":"git+https://github.com/rdfjs-base/io.git","type":"git"},"_npmVersion":"10.2.4","description":"I/O operations for RDF/JS streams and datasets","directories":{},"_nodeVersion":"20.11.0","dependencies":{"duplex-to":"^2.0.0","stream-chunks":"^1.0.0","readable-stream":"^4.4.2"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^8.0.1","mocha":"^10.2.0","rdf-test":"^0.1.0","is-stream":"^3.0.0","@rdfjs/dataset":"^2.0.1","@rdfjs/formats":"^4.0.0","@rdfjs/data-model":"^2.0.1","stricter-standard":"^0.3.0","@rdfjs/environment":"^1.0.0","@rdfjs/to-ntriples":"^2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/io_1.1.0_1716668804096_0.33002154231811787","host":"s3://npm-registry-packages"}},"1.1.1":{"name":"@rdfjs/io","version":"1.1.1","keywords":["input","io","output","rdf","rdfjs"],"author":{"url":"https://www.bergnet.org/people/bergi/card#me","name":"Thomas Bergwinkl","email":"bergi@axolotlfarm.org"},"license":"MIT","_id":"@rdfjs/io@1.1.1","maintainers":[{"name":"bergos","email":"bergi@bergnet.org"}],"homepage":"https://github.com/rdfjs-base/io","bugs":{"url":"https://github.com/rdfjs-base/io/issues"},"dist":{"shasum":"102411c52f95a00e9d66430a8c05b4aaf7811510","tarball":"https://registry.npmjs.org/@rdfjs/io/-/io-1.1.1.tgz","fileCount":21,"integrity":"sha512-GtlYlZ39ejiztacSRoOB1Sw2wyJrOjmb6i81xe9dmGIetBp7o/5t9SliLcsfN38dxSD172C9HEiB1A9nbP8tmQ==","signatures":[{"sig":"MEQCIFsI6yGFIuRxhroHAhVW1boeMvINGl2nsTHNSpymAfzaAiBXK7a89+bzEmN+4Y3uKzorWFNZLld++AzTcXoiUQtNRg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":39093},"main":"index.js","type":"module","gitHead":"794cb701b9f1dac3bb7fe48d514c4b4f6f063ffa","scripts":{"test":"stricter-standard && c8 --reporter=lcov --reporter=text-summary mocha"},"_npmUser":{"name":"bergos","email":"bergi@bergnet.org"},"repository":{"url":"git+https://github.com/rdfjs-base/io.git","type":"git"},"_npmVersion":"10.2.4","description":"I/O operations for RDF/JS streams and datasets","directories":{},"_nodeVersion":"20.11.0","dependencies":{"duplex-to":"^2.0.0","stream-chunks":"^1.0.0","readable-stream":"^4.4.2"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^9.1.0","mocha":"^10.2.0","rdf-test":"^0.1.0","is-stream":"^4.0.1","@rdfjs/dataset":"^2.0.1","@rdfjs/formats":"^4.0.0","@rdfjs/data-model":"^2.0.1","stricter-standard":"^0.3.0","@rdfjs/environment":"^1.0.0","@rdfjs/to-ntriples":"^3.0.1"},"_npmOperationalInternal":{"tmp":"tmp/io_1.1.1_1716670145981_0.30146911498191953","host":"s3://npm-registry-packages"}},"1.2.0":{"name":"@rdfjs/io","version":"1.2.0","keywords":["input","io","output","rdf","rdfjs"],"author":{"url":"https://www.bergnet.org/people/bergi/card#me","name":"Thomas Bergwinkl","email":"bergi@axolotlfarm.org"},"license":"MIT","_id":"@rdfjs/io@1.2.0","maintainers":[{"name":"bergos","email":"bergi@bergnet.org"}],"homepage":"https://github.com/rdfjs-base/io","bugs":{"url":"https://github.com/rdfjs-base/io/issues"},"dist":{"shasum":"c0efc416be1ce79323d3ccba800028554d2fd0db","tarball":"https://registry.npmjs.org/@rdfjs/io/-/io-1.2.0.tgz","fileCount":21,"integrity":"sha512-wGScmcUW7YAcoQk0bTRDBZqdPL/Y58Fuz7F0nXKThBnWPTIUct8CWKzbkT1ym8X/nW46yBw5+nmasVauSN7yIw==","signatures":[{"sig":"MEUCIQDuqAT5HrzcyUK/BWIVZI/afynUPY+LLjFxLOUyvvvWUQIgP93FdQVyoT7KKM7sXQ8W3RoL9hvJClTC+7VNadp6TxA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":41551},"main":"index.js","type":"module","gitHead":"5c904b944008d9501d0d17b9714f3a966f9bdb93","scripts":{"test":"stricter-standard && c8 --reporter=lcov --reporter=text-summary mocha"},"_npmUser":{"name":"bergos","email":"bergi@bergnet.org"},"repository":{"url":"git+https://github.com/rdfjs-base/io.git","type":"git"},"_npmVersion":"10.2.4","description":"I/O operations for RDF/JS streams and datasets","directories":{},"_nodeVersion":"20.11.0","dependencies":{"duplex-to":"^2.0.0","stream-chunks":"^1.0.0","readable-stream":"^4.4.2"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^10.0.0","mocha":"^10.2.0","rdf-test":"^0.1.0","is-stream":"^4.0.1","@rdfjs/dataset":"^2.0.1","@rdfjs/formats":"^4.0.0","@rdfjs/data-model":"^2.0.1","stricter-standard":"^0.3.0","@rdfjs/environment":"^1.0.0","@rdfjs/to-ntriples":"^3.0.1"},"_npmOperationalInternal":{"tmp":"tmp/io_1.2.0_1728738157174_0.627130661919477","host":"s3://npm-registry-packages"}}},"time":{"created":"2023-11-24T21:20:02.421Z","modified":"2026-02-11T20:56:37.885Z","1.0.0":"2023-11-24T21:20:02.838Z","1.1.0":"2024-05-25T20:26:44.262Z","1.1.1":"2024-05-25T20:49:06.137Z","1.2.0":"2024-10-12T13:02:37.389Z"},"bugs":{"url":"https://github.com/rdfjs-base/io/issues"},"author":{"url":"https://www.bergnet.org/people/bergi/card#me","name":"Thomas Bergwinkl","email":"bergi@axolotlfarm.org"},"license":"MIT","homepage":"https://github.com/rdfjs-base/io","keywords":["input","io","output","rdf","rdfjs"],"repository":{"url":"git+https://github.com/rdfjs-base/io.git","type":"git"},"description":"I/O operations for RDF/JS streams and datasets","maintainers":[{"email":"bergi@bergnet.org","name":"bergos"},{"email":"matthieubosquet@gmail.com","name":"matthieubosquet"}],"readme":"# @rdfjs/io\n\n[![build status](https://img.shields.io/github/actions/workflow/status/rdfjs-base/io/test.yaml?branch=master)](https://github.com/rdfjs-base/io/actions/workflows/test.yaml)\n[![npm version](https://img.shields.io/npm/v/@rdfjs/io.svg)](https://www.npmjs.com/package/@rdfjs/io)\n\nThis package provides I/O operations for RDF/JS streams and datasets.\n\n## Usage\n\nDepending on which kind of objects should be used for the I/O operations, there are three different options to import this package:\n\nTo import both, streams and datasets operations, use the main entrypoint:\n\n```js\nimport * as io from '@rdfjs/io'\n```\n\nIf only dataset operations are required:\n\n```js\nimport * as datasetIo from '@rdfjs/io/dataset.js'\n```\n\nAnd, if only stream operations are required:\n\n```js\nimport * as streamIo from '@rdfjs/io/stream.js'\n```\n\n### Factory Argument\n\nAll operations require a factory argument.\nThe factory must be an [Environment](https://www.npmjs.com/package/@rdfjs/environment) that bundles multiple other factories.\n[FetchFactory](https://www.npmjs.com/package/@rdfjs/fetch-lite) and [FormatsFactory](https://www.npmjs.com/package/@rdfjs/formats) are required for the stream operations.\nAdditionally, the [DatasetFactory](https://www.npmjs.com/package/@rdfjs/dataset) is required for dataset operations.\n\n## Examples\n\nThe following example loads a dataset from the given URL:\n\n```js\nimport * as io from '@rdfjs/io'\nimport factory from './factory.js'\n\nconst url = 'https://housemd.rdf-ext.org/person/gregory-house'\nconst dataset = await io.dataset.fromURL(url, { factory })\n```\n\nThe following example loads the quads of the given URL as a stream of quads:\n\n```js\nimport * as io from '@rdfjs/io'\nimport factory from './factory.js'\n\nconst url = 'https://housemd.rdf-ext.org/person/gregory-house'\nconst stream = io.stream.fromURL(url, { factory })\n```\n","readmeFilename":"README.md"}