Splits words like Microsoft word with state machine
MIT License
Splits words like Microsoft word with state machine
npm install split-word
# or use yarn
yarn add split-word
const { wordChunks, wordCount, wordSlice } = require('split-word')
wordCount('你好 hello world') // => 4
wordChunks('你好 hello world') // => ['你', '好 ', 'hello ', 'world']
wordSlice('你好 hello world', 0, 2) // => '你好 '
git checkout -b feature-new
or git checkout -b fix-which-bug
git commit -am 'feat: some description (close #123)'
or git commit -am 'fix: some description (fix #123)'
git push
This library is written and maintained by imcuttle, [email protected].
MIT - imcuttle 🐟