ndef-lib/index.js
function (tnf_byte) {
        return {
            mb: (tnf_byte & 0x80) !== 0,
            me: (tnf_byte & 0x40) !== 0,
            cf: (tnf_byte & 0x20) !== 0,
            sr: (tnf_byte & 0x10) !== 0,
            il: (tnf_byte & 0x8) !== 0,
            tnf: (tnf_byte & 0x7)
        };
    }
function (tnf_byte) {
        return {
            mb: (tnf_byte & 0x80) !== 0,
            me: (tnf_byte & 0x40) !== 0,
            cf: (tnf_byte & 0x20) !== 0,
            sr: (tnf_byte & 0x10) !== 0,
            il: (tnf_byte & 0x8) !== 0,
            tnf: (tnf_byte & 0x7)
        };
    }
function ( tnf_byte ) { return { mb : ( tnf_byte & 0x80 ) !== 0 , me : ( tnf_byte & 0x40 ) !== 0 , cf : ( tnf_byte & 0x20 ) !== 0 , sr : ( tnf_byte & 0x10 ) !== 0 , il : ( tnf_byte & 0x8 ) !== 0 , tnf : ( tnf_byte & 0x7 ) } ; }
Decode the bit flags from a TNF Byte.

@returns object with decoded data

See NFC Data Exchange Format (NDEF) Specification Section 3.2 RecordLayout
Decode the bit flags from a TNF Byte .