open-index/open-npm huggingface dataset:
npm package: @privageapp/thai-national-id-reader
Description: Thai Personal ID Card reader for NodeJS (PCSClite)
Author: Privage App Co.,Ltd.
Latest version: 1.0.4

# thai-national-id-reader

Thai National ID card reader for nodeJS. 

[![npm version](https://badge.fury.io/js/%40privageapp%2Fthai-national-id-reader.svg)](https://badge.fury.io/js/%40privageapp%2Fthai-national-id-reader) ![MIT](https://img.shields.io/dub/l/vibe-d.svg)  

Credits. ADPU Command from [ThaiNationalIDCard](https://github.com/chakphanu/ThaiNationalIDCard) and HexString convertion from [thai-smartcard-reader](https://github.com/aodstudio/thai-smartcard-reader/blob/master/src/index.js)

## Installation

#### Using npm

```bash
$ npm install --save @privageapp/thai-national-id-reader
```

#### Using yarn

```bash
$ yarn add @privageapp/thai-national-id-reader
```

## Example

```js
const { ThaiCardReader, EVENTS, MODE } = require('@privageapp/thai-national-id-reader')

const reader = new ThaiCardReader()
reader.readMode = MODE.PERSONAL_PHOTO
reader.autoRecreate = true
reader.startListener()

reader.on(EVENTS.READING_COMPLETE, (obj) => {
  console.log(obj)
})
```

## API

### EVENTS
The `ThaiCardReader` object emits the following events

##### Event: PCSC_INITIAL
Emitted when a listener is started.

##### Event: PCSC_CLOSE
Emitted when a PCSC device is detached.

##### Event: DEVICE_WAITING
Emitted when a smart card reader is disconnected from host. (Only auto re-create is set to `true`).

##### Event: DEVICE_CONNECTED
Emitted when a smart card reader is ready to read.

##### Event: DEVICE_ERROR
Emitted when a smart card reader is error.

##### Event: DEVICE_DISCONNECTED
Emitted when a smart card reader is detached from host.

##### Event: CARD_INSERTED
Emitted when a smart card is inserted.

##### Event: CARD_REMOVED
Emitted when a smart card is removed.

##### Event: READING_INIT
Emitted when a device prepare to reading data.

##### Event: READING_START
Emitted when a device start to reading data.

##### Event: READING_PROGRESS
Emitted while a device reading data. This event return progress.
Returns `Object`:
```js
{ 
  step: 1, // Current reading segment
  of: 25, // All segment
  message: '' // Section name
}
```

##### Event: READING_COMPLETE
Emitted when a device finish reading data.
Returns `Object`:
```js
{ 
  citizenId: '1999999999999',
  titleTH: 'นาย',
  firstNameTH: '',
  lastNameTH: '',
  titleEN: 'Mr.',
  firstNameEN: '',
  lastNameEN: '',
  birthday: '1900-01-01',
  gender: 'male',
  address: 'address',
  issue: '2000-01-01',
  expire: '2010-01-01',
  photo: 'data:image/jpeg;....'
}
```

##### Event: READING_FAIL
Emitted when reading data fail

### MODE
##### Mode: PERSONAL
Read only personal data

##### Mode: PERSONAL_PHOTO
Read both personal data and photo


## License

You can use for free with [MIT License](https://github.com/privageapp/thai-national-id-reader/blob/master/LICENSE)
npm package: @privagexyz/emoji-mart-react
Description: React wrapper for Custom Fork of Emoji Mart; the emoji picker for the web.
Latest version: 1.0.1

# `@emoji-mart-awesome/react`

A React wrapper for [EmojiMartAwesome](https://github.com/viaduck/emoji-mart-awesome).

## ✍️ Changes compared to the upstream `@emoji-mart/react`
- Added React 19 support
- Added Emoji component for react usage

## 🧑‍💻 Usage
```sh
npm install --save emoji-mart-awesome @emoji-mart/data @emoji-mart-awesome/react
```

```js
import data from '@emoji-mart/data'
import Picker from '@emoji-mart-awesome/react'

function App() {
  return (
    <Picker data={data} onEmojiSelect={console.log} />
  )
}
```

## 📚 Documentation
See https://github.com/missive/emoji-mart#react
npm package: @private-captcha/private-captcha-js
Description: JS client for server-side usage of Private Captcha API
Latest version: 0.0.12

# private-captcha-js

[![NPM Version badge](https://img.shields.io/npm/v/%40private-captcha/private-captcha-js)](https://www.npmjs.com/package/@private-captcha/private-captcha-js) ![CI](https://github.com/PrivateCaptcha/private-captcha-js/actions/workflows/ci.yaml/badge.svg)

JavaScript client for server-side Private Captcha verification.

<mark>Please check the [official documentation](https://docs.privatecaptcha.com/docs/integrations/javascript/) for the in-depth and up-to-date information.</mark>

## Quick Start

- Install `private-captcha-js` npm package
    ```bash
    npm install private-captcha-js
    ```
- Instantiate the client and use `verify()` method    
    ```javascript
    import { createClient } from 'private-captcha-js';
    
    const client = createClient({ apiKey: 'your-api-key' });
    
    const result = await client.verify({ solution: 'captcha-solution-from-client' });
    if (result.ok()) {
        console.log('Captcha verified!');
    }
    ```
- Use Express.js middleware using `client.middleware()` method

## License

This project is licensed under the MIT License - see the LICENSE file for details.

## Support

For issues with this Javascript client, please open an issue on GitHub.

For Private Captcha service questions, visit [privatecaptcha.com](https://privatecaptcha.com).