glue-text
v1.0.0
Published
Ensure text is not broken when its container is resized.
Downloads
1
Maintainers
Readme
glue-text
Ensure text is not broken when its container is resized. Useful for ensuring kaomoji remain together.
Install
npm install glue-text
Usage
const glueText = require("glue-text")
// Add no-break spaces
glueText("a b c")
//=> "a b c"
// Add word joiners
glueText("o-o")
//=> "o-o"
API
glueText(input)
input
Type: string
The text to glue.