@asciidoctor/manpage-converter

1.0.0 • Public • Published

Man(ual) page converter for Asciidoctor.js

Travis build status npm version

Install

$ npm i @asciidoctor/core @asciidoctor/manpage-converter

Usage

var asciidoctor = require('@asciidoctor/core')()
require('@asciidoctor/manpage-converter')()

const options = {
  attributes: { backend: 'manpage', doctype: 'book' },
  standalone: true
}

const content = `= Manual page
:doctitle: Awesome Asciidoctor
:docdate: 2019-01-01

== First section

Once upon a time...`

const manpage = asciidoctor.convert(content, options)
//console.log(manpage)

/@asciidoctor/manpage-converter/

    Package Sidebar

    Install

    npm i @asciidoctor/manpage-converter

    Weekly Downloads

    4

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    53.3 kB

    Total Files

    4

    Last publish

    Collaborators

    • mojavelinux
    • ggrossetie
    • obilodeau