How to use the rehype/package.json.version function in rehype

To help you get started, we’ve selected a few rehype examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github rehypejs / rehype / packages / rehype-cli / cli.js View on Github external
#!/usr/bin/env node
'use strict'

var start = require('unified-args')
var processor = require('rehype')
var proc = require('rehype/package.json')
var cli = require('./package.json')

start({
  processor: processor,
  name: proc.name,
  description: cli.description,
  version: [
    proc.name + ': ' + proc.version,
    cli.name + ': ' + cli.version
  ].join(', '),
  pluginPrefix: proc.name,
  packageField: proc.name,
  rcName: '.' + proc.name + 'rc',
  ignoreName: '.' + proc.name + 'ignore',
  extensions: ['html', 'htm', 'xht', 'xhtml']
})

rehype

HTML processor powered by plugins part of the unified collective

MIT
Latest version published 3 months ago

Package Health Score

78 / 100
Full package analysis