New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

docen

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

docen

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

edge
latest
Source
npmnpm
Version
0.0.7
Version published
Maintainers
1
Created
Source

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

  • MIT © Demo Macro

Keywords

pandoc

FAQs

Package last updated on 03 Sep 2024

Did you know?

Socket

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