Code Monkey home page Code Monkey logo

string-toolkit's Introduction

string-toolkit

npm

Installation

npm i string-toolkit --save

Usage

const stringToolsRequire = require("string-toolkit");
const stringTools = new stringToolsRequire();

Example

const stringToolsRequire = require("string-toolkit");
const stringTools = new stringToolsRequire();

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

Available functions

Function Example usage Params Output
toProperCase(String, Boolean) toProperCase("hey there!", true) 1- String (Required)
2- Boolean (Optional)
"Hey There!"
toChunks(String, Number) toChunks("hey there!", 3) 1- String (Required)
2- Number (Required)
[ 'hey', ' th', 'ere', '!' ]
scramble(String) scramble("hey there!") 1- String (Required) "rte! ehyhe"
mock(String) mock("hey there!") 1- String (Required) "hEy tHeRe!"
emojify(String) emojify("hey there!") 1- String (Required) ":regional_indicator_h::regional_indicator_e::regional_indicator_y: :regional_indicator_t::regional_indicator_h::regional_indicator_e::regional_indicator_r::regional_indicator_e::exclamation:"
hasCustomEmoji(String) hasCustomEmoji("hey there!") 1- String (Required) "No custom emoji detected"
createProgressBar(Number, Number, Object) createProgressBar(57, 100, { elapsedChar: "+", progressChar: "@", emptyChar: "~" }) 1- Number (Required)
2- Number (Required)
3- Object (Optional)
"+++++++++++++++++++++++++++++@~~~~~~~~~~~~~~~~~~~~"
toAbbreviation(String) toAbbreviation("hey there!") 1- String (Required) "ht"
fakeToken() fakeToken() No parameters NDYxOTU5NjQ2NzY4NzU5ODEyNA==.itPxe4.X2B1p3kjQqcpPNxnm30XwX7q4N

More functions coming soon.

string-toolkit's People

Contributors

voltrexkeyva avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.