{"id":16776741,"url":"https://github.com/n0tan3rd/node-cdxj","last_synced_at":"2025-08-17T22:12:57.444Z","repository":{"id":74125231,"uuid":"91649588","full_name":"N0taN3rd/node-cdxj","owner":"N0taN3rd","description":"Parse CDXJ(https://github.com/oduwsdl/ORS/wiki/CDXJ) files with node.js","archived":false,"fork":false,"pushed_at":"2017-07-20T02:04:58.000Z","size":131,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-25T16:13:44.071Z","etag":null,"topics":["cdxj","web-archives","webarchive","webarchiving"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/N0taN3rd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2017-05-18T04:45:08.000Z","updated_at":"2017-05-21T06:20:18.000Z","dependencies_parsed_at":"2023-05-03T14:31:50.059Z","dependency_job_id":null,"html_url":"https://github.com/N0taN3rd/node-cdxj","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/N0taN3rd%2Fnode-cdxj","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/N0taN3rd%2Fnode-cdxj/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/N0taN3rd%2Fnode-cdxj/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/N0taN3rd%2Fnode-cdxj/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/N0taN3rd","download_url":"https://codeload.github.com/N0taN3rd/node-cdxj/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243911474,"owners_count":20367682,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cdxj","web-archives","webarchive","webarchiving"],"created_at":"2024-10-13T07:10:50.728Z","updated_at":"2025-03-16T18:42:42.738Z","avatar_url":"https://github.com/N0taN3rd.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# node-cdxj\nRead cdxj files produced by [Pywb](https://github.com/ikreymer/pywb) using node.js.\n\nRun `npm install cdxj` or `yarn add cdxj` to get started\n\n[![npm Package](https://img.shields.io/npm/v/cdxj.svg?style=flat-square)](https://www.npmjs.com/package/cdxj)\n\n## Example usage\n\n### Example 1\n```js\nconst CDXJReader = require('cdxj')\n\nasync function getMeSomeCDXJ () {\n  let cdxj = await CDXJReader.readCDXJ('\u003cpath-to-cdxj-file\u003e')\n  cdxj.forEach(cdxjEntry =\u003e {\n     console.log(`The URL in surt form for this entry is: ${cdxjEntry.surt}`)\n     console.log(`The raw datetime for this entry is: ${cdxjEntry.dt}`)\n     console.log(`The json data for this entry is: ${cdxjEntry.json}`)\n  })\n}\n```\n\n### Example 2\n```js\nconst CDXJReader = require('cdxj')\n\nconst cdxjStream = CDXJReader.createReadStream('\u003cpath-to-cdxj-file\u003e')\n\ncdxjStream.on('data', cdxjEntry =\u003e { \n  console.log(cdxjEntry) \n})\n```\n\n## API\nFull API documentation available at [n0tan3rd.github.io/node-cdxj](https://n0tan3rd.github.io/node-cdxj/)\n\n\n[![JavaScript Style Guide](https://cdn.rawgit.com/feross/standard/master/badge.svg)](https://github.com/feross/standard)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fn0tan3rd%2Fnode-cdxj","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fn0tan3rd%2Fnode-cdxj","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fn0tan3rd%2Fnode-cdxj/lists"}