UNPKG

ndef

Version:

Library to create and parse NDEF messages.

14 lines (12 loc) 326 B
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; } }