# @datagica/datanote-service-file2text

> Convert a document to plain text

Latest version **1.0.0** (published 2017-07-08) · ISC license · 0 weekly downloads

## Install

```sh
npm install @datagica/datanote-service-file2text
pnpm add @datagica/datanote-service-file2text
yarn add @datagica/datanote-service-file2text
bun add @datagica/datanote-service-file2text
```

## Health

**Score 5/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: insecure dependencies; abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2017-07-08 |
| First published | 2017-07-08 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Julian Bilcke |
| Maintainers | datagica |

## Links

- npm: https://www.npmjs.com/package/@datagica/datanote-service-file2text
- npm.io page: https://npm.io/package/@datagica/datanote-service-file2text

## Dependencies (2)

- [micro](https://npm.io/package/micro.md) ^7.3.3
- [@datagica/read-document](https://npm.io/package/@datagica/read-document.md) git+ssh://git@bitbucket.org/datagica/read-document.git

## Recent versions

- 1.0.0 (latest) — 2017-07-08

## README

# file2text

*a micro service to convert a document to plain text*

## Usage

`npm run start` then `POST` a file to the micro-service using the right `Content-Type`.

## Examples

### Plain text

    $ curl -i -X POST "http://localhost:3000" -H "Content-Type: text/plain" --data-binary "@tests/fixtures/test.txt"

### PDF

    $ curl -i -X POST "http://localhost:3000" -H "Content-Type: application/pdf" --data-binary "@tests/fixtures/test.pdf"

## Doc

    $ curl -i -X POST "http://localhost:3000" -H "Content-Type: application/msword" --data-binary "@tests/fixtures/test.doc"

## Docx

    $ curl -i -X POST "http://localhost:3000" -H "Content-Type: application/vnd.openxmlformats-officedocument.wordprocessingml.document" --data-binary "@tests/fixtures/test.docx"

---
_Source: https://npm.io/package/@datagica/datanote-service-file2text · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
