ndef-lib/index.js
function (uri, id) {
        var payload = uriHelper.encodePayload(uri);
        if (!id) { id = []; }
        return ndef.record(ndef.TNF_WELL_KNOWN, ndef.RTD_URI, id, payload);
    }
function (uri, id) {
        var payload = uriHelper.encodePayload(uri);
        if (!id) { id = []; }
        return ndef.record(ndef.TNF_WELL_KNOWN, ndef.RTD_URI, id, payload);
    }
function ( uri , id ) { var payload = uriHelper . encodePayload ( uri ) ; if ( ! id ) { id = [ ] ; } return ndef . record ( ndef . TNF_WELL_KNOWN , ndef . RTD_URI , id , payload ) ; }
Helper that creates a NDEF record containing a URI.

@uri String
@id byte[] (optional)
Helper that creates a NDEF record containing a URI .