All Projects → VoltrexMaster → string-toolkit

VoltrexMaster / string-toolkit

Licence: MIT license
Just a package containing tools to manipulate a string.

Programming Languages

C++
36643 projects - #6 most used programming language
javascript
184084 projects - #8 most used programming language
python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to string-toolkit

Sounder
An intent recognizing algorithm to predict the intent of a given text.
Stars: ✭ 118 (+555.56%)
Mutual labels:  string-manipulation
Cl Str
Modern, simple and consistent Common Lisp string manipulation library.
Stars: ✭ 172 (+855.56%)
Mutual labels:  string-manipulation
Text
An efficient packed, immutable Unicode text type for Haskell, with a powerful loop fusion optimization framework.
Stars: ✭ 248 (+1277.78%)
Mutual labels:  string-manipulation
Snippets
(Hopefully) useful code snippets and header-only libs
Stars: ✭ 123 (+583.33%)
Mutual labels:  string-manipulation
Interviewbit
Collection of Abhishek Agrawal's gists solutions for problems on https://www.interviewbit.com
Stars: ✭ 166 (+822.22%)
Mutual labels:  string-manipulation
Str
A fast, solid and strong typed string manipulation library with multibyte support
Stars: ✭ 199 (+1005.56%)
Mutual labels:  string-manipulation
Strtk
C++ String Toolkit Library
Stars: ✭ 113 (+527.78%)
Mutual labels:  string-manipulation
python-string-utils
A handy Python library to validate, manipulate and generate strings
Stars: ✭ 47 (+161.11%)
Mutual labels:  string-manipulation
Voca rs
Voca_rs is the ultimate Rust string library inspired by Voca.js, string.py and Inflector, implemented as independent functions and on Foreign Types (String and str).
Stars: ✭ 167 (+827.78%)
Mutual labels:  string-manipulation
Superstring.py
A fast and memory-optimized string library for heavy-text manipulation in Python
Stars: ✭ 231 (+1183.33%)
Mutual labels:  string-manipulation
Str
str: yet another string library for C language.
Stars: ✭ 159 (+783.33%)
Mutual labels:  string-manipulation
Androidlibrary
Android library to reveal or obfuscate strings and assets at runtime
Stars: ✭ 162 (+800%)
Mutual labels:  string-manipulation
Util
A collection of useful utility functions
Stars: ✭ 201 (+1016.67%)
Mutual labels:  string-manipulation
Data Structures
Data-Structures using C++.
Stars: ✭ 121 (+572.22%)
Mutual labels:  string-manipulation
r4strings
Handling Strings in R
Stars: ✭ 39 (+116.67%)
Mutual labels:  string-manipulation
Sse4 Strstr
SIMD (SWAR/SSE/SSE4/AVX2/AVX512F/ARM Neon) of Karp-Rabin algorithm's modification
Stars: ✭ 115 (+538.89%)
Mutual labels:  string-manipulation
Stringz
💯 Super fast unicode-aware string manipulation Javascript library
Stars: ✭ 181 (+905.56%)
Mutual labels:  string-manipulation
vbml
Way to check, match and resist.
Stars: ✭ 27 (+50%)
Mutual labels:  string-manipulation
strong
A Lua library that makes your strings stronger!
Stars: ✭ 62 (+244.44%)
Mutual labels:  string-manipulation
Stringi
THE String Processing Package for R (with ICU)
Stars: ✭ 204 (+1033.33%)
Mutual labels:  string-manipulation

Just a package containing tools to manipulate a string.


npm

Installation

npm i string-toolkit

Usage

// Creating a new instance.
const stringTools = new (require('string-toolkit'))();

// Can also be used without a new instance.
const stringTools = require('string-toolkit');

Example

const stringTools = require('string-toolkit');

console.log(stringTools.toProperCase('hey there!'));

Available functions

toProperCase(string[, boolean])

const output = stringTools.toProperCase('hey there!', true);

console.log(output); // 'Hey There!'

toChunks(string, number)

const output = stringTools.toChunks('hey there!', 3);

console.log(output); // [ 'hey', ' th', 'ere', '!' ]

scramble(string)

const output = stringTools.scramble('hey there!');

console.log(output); // 'rte! ehyhe'

mock(string)

const output = stringTools.mock('hey there!');

console.log(output); // 'HeY ThErE!'

emojify(string)

const output = stringTools.emojify('hey there!');

console.log(output);
// '🇭🇪🇾 🇹🇭🇪🇷🇪❗'

hasCustomEmoji(string)

const output = stringTools.hasCustomEmoji('hey there!');

console.log(output); // false

createProgressBar(number, number[, object])

const output = stringTools.createProgressBar(57, 100, {
  elapsedChar: '+',
  progressChar: '@',
  emptyChar: '~',
  barLength: 10
});

console.log(output); // '+++++@~~~~'

toAbbreviation(string)

const output = stringTools.toAbbreviation('hey there!');

console.log(output); // 'ht'

fakeToken()

const output = stringTools.fakeToken();

console.log(output);
// 'NDI0NTYyNzY1NTMzNzQ0MjY3MA==.Cz0j0.Zf6Tfo17wN27N8tnkoG164Q9'

decancer(string)

const output = stringTools.decancer('𝓱𝓮𝔂 𝓽𝓱𝓮𝓻𝓮!');

console.log(output); // 'hey there!'

shorten(string, number[, string])

const output = stringTools.shorten('bruh moment', 4, 'end');

console.log(output); // 'bruhend'

parseOptions(string[])

const str = 'bruh --moment what bro --search --big bruh moment';

const output = stringTools.parseOptions(str.split(' '));

console.log(output);
/*
  {
    options: {
      moment: 'what bro',
      big: 'bruh moment'
    },
    flags: [ 'search' ],
    contentNoOptions: 'bruh',
    contentNoFlags: 'bruh what bro bruh moment'
  }
 */
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].