npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@henriette-einstein/henni-doctor

v0.9.1

Published

Henriettes Asciidoctor converter

Downloads

7

Readme

Henni-Doctor

Henriette's Asciidoc converter henni-doctor. It converts AsciiDoc files and returns a JSON Object that contains the metadata, custom attributes and the HTML fragment content corresponding to the given Asciidoc file.

Henni-Doctor can also be used with vinyl streams and via Gulp.

Installation

To include henni-doctor in a project use

yarn add @henriette-einstein/henni-doctor

To use the command line of henni-doctor use

yarn add @henriette-einstein/henni-doctor

This will install the command henni-doctor

Usage

This section describes how to integrate henni-project in a node application. The invocation of the command line is described later

Direct Invocation

const henni = require('henni-doctor')

const myOptions = {
  prefixes: ['data-'],
  attributes: {
    creator: 'Your Creator',
    idprefix: 'myid_'
  }
}

const doctor = new henni.Doctor(myOptions)
const ret = doctor.parseFile('PUT FILENAME HERE')

Vinyl Streams

Here is a sample for invoking

const path = require('path')
const vfs = require('vinyl-fs')
const henni = require('../index')

const myOptions = {
  extension: '.json',
  prefixes: ['data-'],
  attributes: {
    creator: 'Your Creator',
    idprefix: 'id_'
  }
}

const pattern = path.join(__dirname, '/**/*.adoc')
const resultDir = path.join(__dirname__, '/result')
vfs
  .src(pattern)
  .pipe(henni())
  .pipe(vfs.dest(resultDir))

Options

The bahavior of henni-doctor can be controlled via the following option parameters

extension

Type: String

This option is only used when used with Gulp or vinyl-fs. It can be used, to define a different extension for the resulting file. The default for this option ist:

extension: '.json'

`prefixes``

Type: Array of strings

Extract only attributes with the given prefixes from the AsciiDoc file. If the option is not set or the options contains the value 'all', all attributes will be included in the result.

The default vaule for this option is not set. Therefore all attributes are included by default.

To extract only attributes with the prefixes 'data-' and 'mydata-' from the instances, use the following configuration:

prefixes: ['data-', 'mydata-']

attributes

Type: JSON object

This option contains the attributes to be passed to the underlying AsciiDoctor converter. The default for this option is

attributes: {
  idprefix: 'id_'
}

Command Line

You can invoke henni-doctor via the CLI.

Usage: henni-doctor.js <options> pattern

Optionen:
  --version           Version anzeigen                                 [boolean]
  --output, -o        Path to output directory          [string] [Standard: "."]
  --extension, --ext  The extension for the resulting output files
                                                    [string] [Standard: ".json"]
  --prefixes, --pre   The prefix of the attributes to extract. Can be set more
                      than once                                         [string]
  --help              Hilfe anzeigen                                   [boolean]

The pattern must be a valid vinyl-fs source pattern (like "docs/*/.adoc"). You probably have to enclose the pattern otherwise your shell may try to expand the value before invoking the application.