0.0.7 • Published 10 months ago

docen v0.0.7

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

docen

npm version npm downloads npm license

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 source = readFileSync("demo.pdf");

const arrayBuffer = source.buffer.slice(source.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

0.0.7

10 months ago

0.0.7-edge.3

1 year ago

0.0.7-edge.2

1 year ago

0.0.7-edge.1

1 year ago

0.0.7-edge.0

1 year ago

0.0.6-edge.0

1 year ago

0.0.5-edge.3

2 years ago

0.0.1

2 years ago

0.0.5-edge.1

2 years ago

0.0.3

2 years ago

0.0.5-edge.2

2 years ago

0.0.2

2 years ago

0.0.5-edge.0

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.0

2 years ago