$ npm i @asciidoctor/core @asciidoctor/manpage-converter
Usage
varasciidoctor=require('@asciidoctor/core')()require('@asciidoctor/manpage-converter')()constoptions={attributes: {backend: 'manpage',doctype: 'book'},standalone: true}constcontent=`= Manual page:doctitle: Awesome Asciidoctor:docdate: 2019-01-01== First sectionOnce upon a time...`constmanpage=asciidoctor.convert(content,options)//console.log(manpage)