{"_id":"@asciidoctor/docbook-converter","_rev":"7-be24dd87e8ac4021d9a54ca4f0518ab4","name":"@asciidoctor/docbook-converter","dist-tags":{"latest":"3.0.0"},"versions":{"2.0.0-rc.1":{"name":"@asciidoctor/docbook-converter","version":"2.0.0-rc.1","keywords":["asciidoc","asciidoctor","opal","javascript","library","converter","docbook"],"license":"MIT","_id":"@asciidoctor/docbook-converter@2.0.0-rc.1","maintainers":[{"name":"mojavelinux","email":"dan.j.allen@gmail.com"},{"name":"ggrossetie","email":"ggrossetie@gmail.com"},{"name":"anthonny.querouil","email":"anthonny.querouil@gmail.com"},{"name":"obilodeau","email":"olivier@bottomlesspit.org"},{"name":"ldez","email":"lfernandez.dev@gmail.com"}],"homepage":"https://github.com/asciidoctor/asciidoctor-docbook.js","bugs":{"url":"https://github.com/asciidoctor/asciidoctor-docbook.js/issues"},"dist":{"shasum":"344591d406de9e8d837ef15474914d2f6cfe8faf","tarball":"https://registry.npmjs.org/@asciidoctor/docbook-converter/-/docbook-converter-2.0.0-rc.1.tgz","fileCount":4,"integrity":"sha512-S1IKSgQKSRJw9zxtYYbF3tkpzTvhRgK8JzHpc/hHwUg9PMTI+CncszjlaiJoXBnAZCFxtrS3X7jtmzStWovgdg==","signatures":[{"sig":"MEYCIQDW1YWexCoQw09K43b9LjAsfDQXzMlPxbjUQVl0Of2j8QIhAICrxUNNabs3epRrxr6IBSB5HUoxaNNDwq6tBOOKky88","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":68400,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcobUVCRA9TVsSAnZWagAA1PoP/1ZNXivowW72lhzLmGaR\nwTGWBs22DO5aXW11fqDRzlRYtPUAoyU64gH0ytkcZSTe4V0fduLjDyPXDbRM\nMI3UXpIGX11zTawyrOZ7Phtw7C4bC5UWE6QxHEgdel2dlgtM37a1IFLDcvXh\nkE0qLdoeAG2eK+l35FtUUSQiX/irV+TQCebHrD3FR+pjZfwzKLnhKRmNeGGw\nuDdAtJnplODdLO5DRW2mFb6vhV99hL4kZfFqAJNokbzNCGed3z6kMS+S5xiC\n+dZO+IlxLZ8sg1RIykmnOzyqHHj4WBMEDJv+iWaTqFI3rOQ5H+Er5hxi1TIo\n2ZmMa07doNonnoyDdGSJAulofjv8T6XrGCLhF22hyvPQZhcYzYQpApN9f3AR\nqSeuVSXg04l2kCT2+hG7Nkn0qOC6xIBz18utBheusp/A9QBt1hjTOCJWJqn/\nqWhdMKlUyKdZNzG8nS87wAK84XJMHdR60s8/5s0PTHxD4TwHcfyaDwE69ETk\nj1XnWLyRelcOD/SN+chqjWSv55GADX8ZW1ovv8+I8+PQmWeRnH0iSNbhYj80\nBFpTFKF/pdlDn+r22eMA394qEEqQToGknOXq1BjSEwWUBE1FnA49RTnh53am\nOZx15oS7gVI3Fnq7z8eawGtXkb3eewZ5a3LHfKxEBYqTFrdCcDnOfSFRY8ik\nfH5R\r\n=+t7A\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/main.js","authors":["Guillaume Grossetie (https://github.com/mogztter)"],"engines":{"npm":">=5.0.0","node":">=8.11"},"gitHead":"69af6e270d45ea17418c0c6e2d0d59186b66f65e","scripts":{"lint":"standard test/**.js tasks/**.js","test":"mocha","build":"node tasks/build.js"},"_npmUser":{"name":"ggrossetie","email":"ggrossetie@gmail.com"},"standard":{"env":{"mocha":true}},"repository":{"url":"git+https://github.com/asciidoctor/asciidoctor-docbook.js.git","type":"git"},"_npmVersion":"6.9.0","description":"DocBook converter for Asciidoctor.js","directories":{},"_nodeVersion":"10.15.1","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.2.0","mocha":"5.2.0","standard":"^12.0.1","bestikk-fs":"1.0.0","bestikk-log":"0.1.0","opal-compiler":"^1.0.13","bestikk-download":"1.0.0","@asciidoctor/core":"^2.0.0-rc.1"},"peerDependencies":{"@asciidoctor/core":"^2.0.0-rc.1"},"_npmOperationalInternal":{"tmp":"tmp/docbook-converter_2.0.0-rc.1_1554101524893_0.33883460726793047","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"@asciidoctor/docbook-converter","version":"2.0.0","keywords":["asciidoc","asciidoctor","opal","javascript","library","converter","docbook"],"license":"MIT","_id":"@asciidoctor/docbook-converter@2.0.0","maintainers":[{"name":"anthonny.querouil","email":"anthonny.querouil@gmail.com"},{"name":"ggrossetie","email":"ggrossetie@gmail.com"},{"name":"ldez","email":"lfernandez.dev@gmail.com"},{"name":"mojavelinux","email":"dan.j.allen@gmail.com"},{"name":"obilodeau","email":"olivier@bottomlesspit.org"}],"homepage":"https://github.com/asciidoctor/asciidoctor-docbook.js","bugs":{"url":"https://github.com/asciidoctor/asciidoctor-docbook.js/issues"},"dist":{"shasum":"c89ee4767f9c7cc7a395ae84f67ddc1f3dab7486","tarball":"https://registry.npmjs.org/@asciidoctor/docbook-converter/-/docbook-converter-2.0.0.tgz","fileCount":4,"integrity":"sha512-aL00RU8VuUdPF7/r46IbXIlwHCN2OH87maUgMCmFkoUVr+zRV3BBV8HLcz8vPJjXYXAoYRq1ouxeCD6HqKokcg==","signatures":[{"sig":"MEQCICDpNi9uWSDjzJztFYXj/G+9pDAVmLzFq/PqlGSb+TmtAiBzlUa30K2/SS1WCKRxEPluINFRGhUFj6EOlHxycu0U/A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":68434,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh118GCRA9TVsSAnZWagAA5LQP/jwrRTskS4pkh/0jrPc6\nZtTSXZugm12WaBuhzplJ3fyDGr+35wETogwj/yPFK54MgdfsBnCNqvwRRPx/\nhmSRd5wGK9vwT5iMX+Rax6pavqlmnX8jaAex5+0ost+J9eWPqK5/8FD9Azva\nuZkYLid6/B57vhCR5gEEaXq0tGeE9Kn03X4ylVaMdDrBolx1QOZ2WvG78Du6\nxuMet+KRwboTLSxd8lOavv3Xxa4ZXtjitGdLKCRgqiH8my9o4SFkXZsacWSa\ngOvP9V3jv61Vbj05nF5tiO5sMnaKE21YUW1aL0ouArS4YSsQ7m8Wlvo1gs+C\nZrVkiYeQSb1Z4Jv//NJ4vV8fzWP63Q18FiXga1j7xc0TZRQ1TkW+sJrrsiN5\nTNspujWB2im6e8tr0xqV1zriVd0Bc5aXYKArilXNe3jkdnhDVtXTanZSzHKE\n86fVezus8ApfNmTwon249m7bY85Ws6L7o0jBbV+BWPYJ+abUpHbUoZ+2IR6h\nkUV4qilRcdzqeI+NONH6Oz9ivuKOprO9aHb2c7U6shzmES/2HPlfeFk5tKZp\nK59wfTUPP8Ld2YcwbkXq8+/5ArArtXJY71uDlEoHI92vpMq7iQSX/HJ/xbaY\n738sFfA5KVTDS1Dd3Veb6twDZS3kxAYb1rARkV067B28yGGCRW7FIUYIKebX\nqlM2\r\n=oOH8\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/main.js","authors":["Guillaume Grossetie (https://github.com/mogztter)"],"engines":{"npm":">=5.0.0","node":">=8.11"},"gitHead":"09d4f8214cd0b9bdf91c625b796008508d76db1a","scripts":{"lint":"standard test/**.js tasks/**.js","test":"mocha","build":"node tasks/build.js"},"_npmUser":{"name":"ggrossetie","email":"ggrossetie@gmail.com"},"standard":{"env":{"mocha":true}},"repository":{"url":"git+https://github.com/asciidoctor/asciidoctor-docbook.js.git","type":"git"},"_npmVersion":"6.9.0","description":"DocBook converter for Asciidoctor.js","directories":{},"_nodeVersion":"10.15.1","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.2.0","mocha":"5.2.0","standard":"^12.0.1","bestikk-fs":"1.0.0","bestikk-log":"0.1.0","opal-compiler":"^1.0.13","bestikk-download":"1.0.0","@asciidoctor/core":"^2.0.0-rc.1"},"peerDependencies":{"@asciidoctor/core":"^2.0.0-rc.1"},"_npmOperationalInternal":{"tmp":"tmp/docbook-converter_2.0.0_1555577752580_0.3770954277323162","host":"s3://npm-registry-packages"}},"3.0.0-beta.1":{"name":"@asciidoctor/docbook-converter","version":"3.0.0-beta.1","keywords":["asciidoc","asciidoctor","opal","javascript","library","converter","docbook"],"license":"MIT","_id":"@asciidoctor/docbook-converter@3.0.0-beta.1","maintainers":[{"name":"mojavelinux","email":"dan.j.allen@gmail.com"},{"name":"ggrossetie","email":"ggrossetie@gmail.com"},{"name":"obilodeau","email":"olivier@bottomlesspit.org"}],"homepage":"https://github.com/asciidoctor/asciidoctor-docbook.js","bugs":{"url":"https://github.com/asciidoctor/asciidoctor-docbook.js/issues"},"dist":{"shasum":"eccfe8fdb2dd1e6e804d8e04550c6c89661839a4","tarball":"https://registry.npmjs.org/@asciidoctor/docbook-converter/-/docbook-converter-3.0.0-beta.1.tgz","fileCount":5,"integrity":"sha512-zZGpjFgmidjrMGApMK7z9PEZgF9quC0sV5sSTtAX36CyjmSJun52RQnAt/5AUSC6z5r8fgMJnG+8LoeJGmUVgQ==","signatures":[{"sig":"MEYCIQCJCLYY/HUQM0qroFpRYm3XnqSFBPlPlNUAGC48gUAklgIhAL0ueldTTUcM4i/dPDMFqFOYTpNgfqll5ck23iMWq33F","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":111926},"main":"dist/index.cjs","type":"module","module":"dist/index.esm.js","authors":["Guillaume Grossetie (https://github.com/mogztter)"],"browser":"dist/index.umd.js","engines":{"npm":">=5.0.0","node":">=8.11"},"gitHead":"7c4e07e820d7bf27485c10e060fa9dab74b00733","scripts":{"lint":"standard test/**.cjs tasks/**.js","test":"npm run test:node && npm run test:browser","build":"node tasks/build.js && rollup -c","test:node":"mocha","test:browser":"node test/browser/run.cjs index.esm.html && npx rollup -c test/browser/rollup.config.js && node test/browser/run.cjs index.umd.html"},"_npmUser":{"name":"ggrossetie","email":"ggrossetie@gmail.com"},"standard":{"env":{"mocha":true}},"repository":{"url":"git+https://github.com/asciidoctor/asciidoctor-docbook.js.git","type":"git"},"_npmVersion":"10.1.0","description":"DocBook converter for Asciidoctor.js","directories":{},"_nodeVersion":"20.8.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"chai":"~4.3","mocha":"~10.2","rollup":"3.21.6","standard":"~17.0","puppeteer":"^13.0.0","bestikk-fs":"1.0.0","dirty-chai":"2.0.1","portfinder":"1.0.32","bestikk-log":"0.1.0","opal-compiler":"3.0.0","bestikk-download":"1.0.0","mock-http-server":"1.4.5","@asciidoctor/core":"~3.0"},"peerDependencies":{"@asciidoctor/core":">= 3.0 < 4.0"},"_npmOperationalInternal":{"tmp":"tmp/docbook-converter_3.0.0-beta.1_1697102507376_0.8134479062168478","host":"s3://npm-registry-packages"}},"3.0.0":{"name":"@asciidoctor/docbook-converter","version":"3.0.0","description":"DocBook converter for Asciidoctor.js","type":"module","main":"dist/index.cjs","browser":"dist/index.umd.js","module":"dist/index.esm.js","engines":{"node":">=8.11","npm":">=5.0.0"},"scripts":{"build":"node tasks/build.js && rollup -c","test":"npm run test:node && npm run test:browser","test:node":"mocha","test:browser":"node test/browser/run.cjs index.esm.html && npx rollup -c test/browser/rollup.config.js && node test/browser/run.cjs index.umd.html","lint":"standard test/**.cjs tasks/**.js"},"repository":{"type":"git","url":"git+https://github.com/asciidoctor/asciidoctor-docbook.js.git"},"publishConfig":{"access":"public"},"keywords":["asciidoc","asciidoctor","opal","javascript","library","converter","docbook"],"authors":["Guillaume Grossetie (https://github.com/mogztter)"],"license":"MIT","bugs":{"url":"https://github.com/asciidoctor/asciidoctor-docbook.js/issues"},"homepage":"https://github.com/asciidoctor/asciidoctor-docbook.js","devDependencies":{"@asciidoctor/core":"~3.0","bestikk-download":"1.0.0","bestikk-fs":"1.0.0","bestikk-log":"0.1.0","chai":"~4.3","dirty-chai":"2.0.1","mocha":"~10.2","mock-http-server":"1.4.5","opal-compiler":"3.0.0","portfinder":"1.0.32","puppeteer":"~23.2","rollup":"3.21.6","standard":"~17.0"},"peerDependencies":{"@asciidoctor/core":">= 3.0 < 4.0"},"standard":{"env":{"mocha":true}},"_id":"@asciidoctor/docbook-converter@3.0.0","gitHead":"0acf391f04721a31ca9757ffaea3870f1c98e13c","_nodeVersion":"20.12.0","_npmVersion":"10.5.0","dist":{"integrity":"sha512-sJtit+xRs6XOJAzxUCw+Ua+7QgFWRMd4yfUy3Rp1M7wK8640wUvUx4XbWpWFqsxRW+Hk9pJ5cRLafuaF5HJnGQ==","shasum":"79ddc998cb8335906b5f619946103cf1dc1f75b7","tarball":"https://registry.npmjs.org/@asciidoctor/docbook-converter/-/docbook-converter-3.0.0.tgz","fileCount":5,"unpackedSize":111926,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDEdBZXbPfFL/PdUfWROqONve0XGPMyvnWL58UdriTqQAIhAKYwM+ajdy951a9pRhp3grXb/2JdmxYwUoQymQj6+2ZY"}]},"_npmUser":{"name":"ggrossetie","email":"ggrossetie@gmail.com"},"directories":{},"maintainers":[{"name":"mojavelinux","email":"dan.j.allen@gmail.com"},{"name":"ggrossetie","email":"ggrossetie@gmail.com"},{"name":"obilodeau","email":"olivier@bottomlesspit.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/docbook-converter_3.0.0_1725270277080_0.4426596442699633"},"_hasShrinkwrap":false}},"time":{"created":"2019-04-01T06:52:04.762Z","modified":"2024-09-02T09:44:37.496Z","2.0.0-rc.1":"2019-04-01T06:52:05.037Z","2.0.0":"2019-04-18T08:55:52.801Z","3.0.0-beta.1":"2023-10-12T09:21:47.579Z","3.0.0":"2024-09-02T09:44:37.256Z"},"bugs":{"url":"https://github.com/asciidoctor/asciidoctor-docbook.js/issues"},"license":"MIT","homepage":"https://github.com/asciidoctor/asciidoctor-docbook.js","keywords":["asciidoc","asciidoctor","opal","javascript","library","converter","docbook"],"repository":{"type":"git","url":"git+https://github.com/asciidoctor/asciidoctor-docbook.js.git"},"description":"DocBook converter for Asciidoctor.js","maintainers":[{"name":"mojavelinux","email":"dan.j.allen@gmail.com"},{"name":"ggrossetie","email":"ggrossetie@gmail.com"},{"name":"obilodeau","email":"olivier@bottomlesspit.org"}],"readme":"# DocBook converter for Asciidoctor.js\n\n[![Build](https://github.com/asciidoctor/asciidoctor-docbook.js/actions/workflows/build.yml/badge.svg)](https://github.com/asciidoctor/asciidoctor-docbook.js/actions/workflows/build.yml)\n[![npm version](http://img.shields.io/npm/v/@asciidoctor/docbook-converter.svg)](https://www.npmjs.com/package/@asciidoctor/docbook-converter)\n\n## Install\n\n```sh\n$ npm i @asciidoctor/core @asciidoctor/docbook-converter\n```\n\n## Usage\n\n### CLI\n\nIf you are using the [Asciidoctor.js CLI](https://github.com/asciidoctor/asciidoctor-cli.js) then you can use the `--require` option to load the DocBook converter:\n\n```\n$ asciidoctor --require @asciidoctor/docbook-converter --backend docbook doc.adoc\n```\n\nThe above command will generate a file named _doc.xml_ using the DocBook converter.\n\n### API\n\nIt's also possible to use the API to convert AsciiDoc content to DocBook.\n\n#### ESM (import)\n\nECMAScript modules are the official standard format to package JavaScript code.\nWe recommend to import this converter using the `import` directive:\n\n```js\nimport Asciidoctor from '@asciidoctor/core'\nimport docbookConverter from '@asciidoctor/docbook-converter'\n\nconst asciidoctor = Asciidoctor() // instantiate Asciidoctor\ndocbookConverter.register() // register the DocBook converter\n\nconst content = `= DocBook\nAuthor Name\nv1.0, 2020-04-13\n:doctype: book\n:doctitle: Awesome Asciidoctor\n:docdate: 2020-01-01\n\n== First section\n\nOnce upon a time...`\n\nconst docbook = asciidoctor.convert(content, { backend: 'docbook5', standalone: true })\n//console.log(docbook)\n```\n\n**❗ IMPORTANT:** Make sure to instantiate Asciidoctor before registering the DocBook converter.\n\n**ℹ️  NOTE:** Since `@asciidoctor/core` is not yet published as an ECMAScript module, you will to use a Web bundler such as Webpack, Rollup or Parcel to import it using the `import` directive.\n\n#### CommonJS (require)\n\n```js\nconst asciidoctor = require('@asciidoctor/core')()\nconst docbookConverter = require('@asciidoctor/docbook-converter')\n\ndocbookConverter.register() // register the DocBook converter\n```\n\n#### UMD\n\nIn addition, we also provide a [Universal Module Definition](https://github.com/umdjs/umd) that exports a global object named `AsciidoctorDocBook`.\nOnce Asciidoctor.js is loaded, you will need to register the converter using `register`:\n\n```js\n/* global Asciidoctor, AsciidoctorDocBook */\nconst asciidoctor = Asciidoctor()\nAsciidoctorDocBook.register() // register the DocBook converter\n```\n","readmeFilename":"README.md"}