@sk-global/text-extractor
TypeScript icon, indicating that this package has built-in type declarations

0.1.25 • Public • Published

@sk-global/text-extractor

A text extractor for extracting text from HTML, PDF, Image and other files.

Currently supported types ...

Installation

npm install @sk-global/text-extractor

Usage

CommonJS

const { fromUrl, fromBufferWithMimeType, fromBuffer } = require('@sk-global/text-extractor');

// fromUrl
const text = await fromUrl('https://www.digital.go.jp/assets/contents/node/basic_page/field_ref_resources/d6cfdcdd-75e4-460c-9ec0-af4f952e03d5/20210906_meeting_promoting_01.pdf');

// fromBufferWithMimeType
const text = await fromBufferWithMimeType(buffer, 'image/png');

// fromBuffer
const text = await fromBuffer(buffer);

ES6

import { fromUrl, fromBufferWithMimeType, fromBuffer } from '@sk-global/text-extractor';

Roadmap

  • [ ] Add support for more file types
  • [ ] Add support for options passed to the underlying libraries

Readme

Keywords

none

Package Sidebar

Install

npm i @sk-global/text-extractor

Weekly Downloads

20

Version

0.1.25

License

MIT

Unpacked Size

52.8 kB

Total Files

18

Last publish

Collaborators

  • binhbv