1.0.0 • Published 3 years ago

glue-text v1.0.0

Weekly downloads
4
License
MIT
Repository
github
Last release
3 years ago

glue-text Travis CI Build Status

Ensure text is not broken when its container is resized. Useful for ensuring kaomoji remain together.

NPM Badge

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.