ndef-lib/index.js
function (text, languageCode, id) {
        var payload = textHelper.encodePayload(text, languageCode);
        if (!id) { id = []; }

        return ndef.record(ndef.TNF_WELL_KNOWN, ndef.RTD_TEXT, id, payload);
    }
function (text, languageCode, id) {
        var payload = textHelper.encodePayload(text, languageCode);
        if (!id) { id = []; }

        return ndef.record(ndef.TNF_WELL_KNOWN, ndef.RTD_TEXT, id, payload);
    }
function ( text , languageCode , id ) { var payload = textHelper . encodePayload ( text , languageCode ) ; if ( ! id ) { id = [ ] ; } return ndef . record ( ndef . TNF_WELL_KNOWN , ndef . RTD_TEXT , id , payload ) ; }
Helper that creates an NDEF record containing plain text.

@text String of text to encode
@languageCode ISO/IANA language code. Examples: “fi”, “en-US”, “fr-CA”, “jp”. (optional)
@id byte[] (optional)
Helper that creates an NDEF record containing plain text .