Skip to content

ncurrier/natorious

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Natorious Utility Collection

This utility collection provides a set of functions for various operations.

natorious.text

A namespace for text-related operations.

natorious.text.modify

A collection of text modification utilities.

trimString

Truncates a string while considering word boundaries.

Usage Example:

import { natorious } from 'natorious';

const longText = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.";

const truncatedText = natorious.text.modify.trimString(longText, 20);
console.log(truncatedText); // Output: "Lorem ipsum dolor..."

About

utility methods

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published