1.1.2 • Published 4 years ago

@henrikdk/spagettostring v1.1.2

Weekly downloads
5
License
MIT
Repository
github
Last release
4 years ago

spagettoString

Is a small package that revovles around modifying, check and create complicated strings for ease of actions.

How to install

npm i @henrikdk/spagettostring

How to use

const spagettoString = require('@henrikdk/spagettoString');

spagettoString.strReverse('Hej');
//Output: "jeH"

spagettoString.strSort('Strawberries Raspberries Apple Blueberries Kiwifruit Passionfruit', "asc");
//Output: "Apple Blueberries Kiwifruit Passionfruit Raspberries Strawberries"

spagettoString.strCompare('this apple is an beautifull apple', "apple");
//Output: "2"

Functions

  • strReverse - Reverse the string.
  • strSort - Sort string by ascending or descending.
  • strCompare - Find how many instances of a word exist in a string.
1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

0.1.0

4 years ago

0.0.0

4 years ago