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