Socket
Socket
Sign inDemoInstall

docen

Package Overview
Dependencies
106
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    docen

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


Version published
Weekly downloads
1
decreased by-75%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

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

Keywords

FAQs

Last updated on 01 Sep 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc