Map of non-ASCII characters to Groff commands.
This package maps non-ASCII characters to Groff commands.
For example, it maps '≠'
to '!='
(which you’ll need to wrap like so \[!=]
to use in Groff).
You can use this package if you’re writing stuff that compiles to Groff / man pages.
This package is ESM only. In Node.js (version 14.14+, 16.0+), install with npm:
npm install groff-escape
In Deno with esm.sh
:
import {groffEscape} from 'https://esm.sh/groff-escape@2'
In browsers with esm.sh
:
<script type="module">
import {groffEscape} from 'https://esm.sh/groff-escape@2?bundle'
</script>
import {groffEscape} from 'groff-escape'
console.log(groffEscape)
Yields:
{ '≠': '!=',
'À': '`A',
'Á': '\'A',
'Â': '^A',
'Ã': '~A',
// …
'♥': 'HE',
'♦': 'DI',
'✓': 'OK',
'⟨': 'la',
'⟩': 'ra' }
This package exports the identifier groffEscape
.
There is no default export.
groffEscape
Map of non-ASCII characters to Groff commands (Record<string, string>
).
This package is fully typed with TypeScript. It exports no additional types.
This package is at least compatible with all maintained versions of Node.js. As of now, that is Node.js 14.14+ and 16.0+. It also works in Deno and modern browsers.
This package is safe.
remarkjs/remark-man
Yes please! See How to Contribute to Open Source.