0.2.0 • Published 6 years ago

ndef v0.2.0

Weekly downloads
43
License
BSD-3-Clause
Repository
github
Last release
6 years ago

Library to create and parse NDEF messages.

ndef = require('ndef');

message = [
    ndef.textRecord("hello, world")
];

bytes = ndef.encodeMessage(message);

// do something useful with bytes: write to a tag or send to a peer
  
records = ndef.decodeMessage(bytes);

ndef.text.decodePayload(records[0].payload);

// prints 'hello, world'
        

See the examples directory and the mifare classic examples for more information on creating and decoding messages.

See the phonegap-nfc documentation for additional info.

0.2.0

6 years ago

0.1.3

8 years ago

0.1.2

9 years ago

0.1.1

9 years ago

0.1.0

10 years ago

0.0.5

10 years ago

0.0.4

11 years ago

0.0.3

11 years ago

0.0.2

11 years ago

0.0.1

11 years ago

0.0.0

11 years ago