string-tuner
v3.0.4
Published
Fine-tune your strings at your rhythm. An easy-to-use JavaScript library with functions to transform and validate strings.
Maintainers
Readme
Fine-tune your strings at your rhythm.
An easy-to-use JavaScript tool to manage strings fast.
Getting Started
Installation
npm install string-tunerHow to use
You can import the entire library or individual modules based on your needs:
>>> Import Everything (Recommended for first-time use)
You can see the full functionality by importing st then hitting . to see the full list of functions through intelisense.
import st from 'string-tuner';
// Use all modules
st.camel('hello world');
st.trim('long string', 5);
st.mask('1234567890');
st.stripHtml('<p>text</p>');
st.valid.email('[email protected]');>>> Import Individual Functions (Recommended for cleaner code)
If you are already familiar with the library, you can import only the functions that you need.
import { camel, trim, mask, stripHtml, valid } from 'string-tuner';
// Use individual functions directly
camel('hello world');
trim('long string', 5);
mask('1234567890');
stripHtml('<p>text</p>');
valid.email('[email protected]');Documentation
To read more about how to use each function, please visit the documentation web page:https://string-tuner.hugomiranda.dev/docs.
License
MIT
