Basically a simple interface for the actual syllable npm module.
npm install syllable-count
import {
countSyllables,
countSyllablesInSentence,
countSyllablesInArray
} from 'syllable-count';
const textInput = `
The quick brown fox jumped over the lazy dog.
`
let logCountSyllables = countSyllables(textInput);
console.log(logCountSyllables)