syllable-dual
v0.0.3
Published
Version of `syllable` package that support both ESM and CJS imports
Readme
Dual-package port of the syllable npm package. TypeScript definitions included.
Installation
npm install syllableUsage
CommonJS
const { syllable } = require('syllable');
console.log(syllable('Hello World!')); // 3ES6
import { syllable } from 'syllable';
console.log(syllable('Hello World!')); // 3