docen
TypeScript icon, indicating that this package has built-in type declarations

0.0.5 • Public • Published

docen

npm version npm downloads npm license Contributor Covenant

Programmatically and command-line implementation of document formatting, powered by Demo Macro.

Features

  • Work in both the browser and Node.js

Getting started

# npm
$ npm install docen

# yarn
$ yarn add docen

# pnpm
$ pnpm add docen

Usage

import { extractText } from "docen";
import { readFileSync, writeFileSync } from "fs";

const pdfSource = readFileSync("demo.pdf");

const arrayBuffer = pdfSource.buffer.slice(pdfSource.byteOffset);

const text = await extractText(arrayBuffer);

writeFileSync("demo.txt", text);

CLI

Usage: docen [command] [options]

Options:
  -s, --source          Source file
  -t, --target          Target file
  -v, --version         Show version number
  -h, --help            Show help

License

Readme

Keywords

Package Sidebar

Install

npm i docen

Weekly Downloads

3

Version

0.0.5

License

MIT

Unpacked Size

8.29 kB

Total Files

13

Last publish

Collaborators

  • demomacro