is-rtf Check if a Buffer/Uint8Array is a RTF file Install $ npm install --save is-rtf Usage var isRtf = require('is-rtf'); var read = require('fs').readFileSync; isRtf(read('test.rtf')); // => true License MIT License © Valentin Dubois