subtitles-reader
v0.0.1
Published
Read all subtitles content from a directory
Downloads
1
Readme
subtitles-reader
- Installation:
npm i subtitles-reader
- Usage:
const { readSubtitlesFromDirectory } = require('subtitles-reader')
readSubtitlesFromDirectory('./subtitles', (filename, subtitles) => {
console.log('subtitles file path ' + filename)
console.log('subtitles from the current file: ' + subtitles)
})
Features
- Read files from nested directories.
- Auto detect file encoding.