felica_driver
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

FeliCa driver for WebUSB

What is this?

FeliCa driver for WebUSB with RC-S380.

How to install

$ npm i felica_driver
# or 
$ yarn add felica_driver

How to use

import { TypeFTag } from 'felica_driver'
 
async fetchFeliCaIDm() {
    // Connect RC-S380
    const type_f_tag = await TypeFTag.connect()
 
    // find IDm
    const idm = await type_f_tag.findIDm()
    return idm.reduce((memo, i) => {
        return memo + ('0' + i.toString(16)).slice(-2)
    }, '')
}

Functions

  • find IDm

Loadmaps

  • read unencrypted data

npm package

felica-driver

License

MIT

/felica_driver/

    Package Sidebar

    Install

    npm i felica_driver

    Weekly Downloads

    5

    Version

    1.0.3

    License

    MIT

    Unpacked Size

    5.34 kB

    Total Files

    7

    Last publish

    Collaborators

    • aruneko