UNPKG
ndef
Version:
latest (0.2.0)
0.2.0
0.1.3
0.1.2
0.1.1
0.1.0
0.0.5
0.0.4
0.0.3
0.0.2
0.0.1
0.0.0
Library to create and parse NDEF messages.
github.com/don/ndef-js
don/ndef-js
ndef
/
index.js
14 lines
(12 loc)
•
326 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
var
ndef =
require
(
'./lib/ndef'
);
module
.
exports
= ndef;
if
(process.
version
.
indexOf
(
'v0.8'
) ===
0
) {
// Monkey Patch Buffer for Node 0.8 support
Buffer
.
prototype
.
toJSON
=
function
(
) { j = [];
for
(
var
i =
0
; i <
this
.
length
; i++) { j[i] =
this
[i]; }
return
j; } }