JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 17951
  • Score
    100M100P100Q142706F
  • License MIT

Unicode characters to Groff commands

Package Exports

  • groff-escape

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (groff-escape) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

groff-escape

Build Coverage Downloads Size

Map of non-ASCII characters to Groff commands: '≠' > '!=' (which you’ll need to wrap like so \[!=] to use in Groff).

Install

This package is ESM only: Node 12+ is needed to use it and it must be imported instead of required.

npm:

npm install groff-escape

Use

import {groffEscape} from 'groff-escape'

console.log(groffEscape)

Yields:

{ '≠': '!=',
  'À': '`A',
  'Á': '\'A',
  'Â': '^A',
  'Ã': '~A',
  // …
  '♥': 'HE',
  '♦': 'DI',
  '✓': 'OK',
  '⟨': 'la',
  '⟩': 'ra' }

API

This package exports the following identifiers: groffEscape. There is no default export.

groffEscape

Object.<string, string> — Map of non-ASCII characters to Groff commands

License

MIT © Titus Wormer