npm.io
1.2.4 • Published 8 years ago

react-clipboard-ocr

Licence
MIT
Version
1.2.4
Deps
12
Vulns
3
Weekly
0
Stars
1
Install scriptsThis package runs scripts during installation (preinstall/install/postinstall)

react-clipboard-ocr

Simple React component for copy text from image (JPG, PNG, PDF etc.)

Insatall

npm i --save react-clipboard-ocr

Example

In React project
const ReactImageOCR = require('react-clipboard-ocr') //import the library
require('react-clipboard-ocr/style.css') //import the styles for cropper.js

//...
<ReactImageOCR/> //add in exist react component
//...
In other projects
import * as React from 'react'
import {render} from 'react-dom'
const ReactImageOCR = require('react-clipboard-ocr') //import the library
require('react-clipboard-ocr/style.css') //import the styles for cropper.js

render(<ReactImageOCR/>, document.getElementById('anyID'))

Keywords