Skip to content

Commit

Permalink
fix pkg scope
Browse files Browse the repository at this point in the history
  • Loading branch information
odahcam committed Dec 19, 2017
1 parent 78a705c commit f152cd4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Browser Usage

Examples below are for QR barcode, all other supported barcodes work similary.

`npm i @odahcam/zxing --save`
`npm i @barn/zxing --save`

To use from JS you need to include what you need from `build/umd` folder (for example `zxing.min.js`).

Expand Down Expand Up @@ -208,20 +208,20 @@ Using from TypeScript
Install the package:
`npm i @odahcam/zxing --save`
`npm i @barn/zxing --save`
And then include directly the classes files you need, for example:
```javascript
import { BrowserQRCodeReader, VideoInputDevice } from '@odahcam/zxing';
import { BrowserQRCodeReader, VideoInputDevice } from '@barn/zxing';
```
The usage is identical with the above.
Node Usage
----------
`npm i @odahcam/zxing --save`
`npm i @barn/zxing --save`
To use in node you will need to provide an implementation of [`LuminanceSource`](https://github.com/odahcam/zxing-ts/blob/master/src/core/LuminanceSource.ts) for an image. A starting point is [`SharpImageLuminanceSource`](https://github.com/odahcam/zxing-ts/blob/master/src/test/core/SharpImageLuminanceSource.ts) from tests that is using [sharp image processing](https://github.com/lovell/sharp) node library.
Expand Down

0 comments on commit f152cd4

Please sign in to comment.