Search npm for packages to use with Deno
Add them to your projects with a simple command that will already feel familar.
word-wrap
Wrap words to a specified length.
@aashutoshrathi/word-wrap
Wrap words to a specified length.
longest-line
Get the longest line length of a string.
chunk-text
🔪 chunk/split a string by length without cutting/truncating words.
node-text-chunk
BREAK TEXT IN CHUNK BY LENGTH OR CHAR CODE LENGTH !
crypto-random-string
Generate a cryptographically strong random string
justified
Wraps words to a specified length and justifies the text in each line.
truncate-text-between-words
Truncates the text at the last space before the given length.
longest-length
Get the length of the longest word in a string. It also correctly calculates the length of the words containing ANSI escape codes.
fast-word-wrap
a fast and simple node.js package for getting a paragraph wrapped at a fixed line length
unique-string
Generate a unique random string
camelcase
Convert a dash/dot/underscore/space separated string to camelCase or PascalCase: `foo-bar` → `fooBar`
decamelize
Convert a camelized string into a lowercased one with a custom separator: unicornRainbow → unicorn_rainbow
@dezren39/chunk-text
🔪 chunk/split a string by length without cutting/truncating words.
js-random-generator
Useful Random Generator
js-levenshtein-esm
The most efficient JS implementation calculating the Levenshtein distance, i.e. the difference between two strings.
split-text
Split a text into an array of chunks. Their length is determined by the `limit` argument. It will no cut off words unless there is no spaces in the text. Returns an array with the chunks.
right-align
Right-align the text in a string.
truncatise
Truncate HTML based on characters, words or paragraphs. Has the ability to strip tags.
ansi-styles
ANSI escape codes for styling strings in the terminal