1.1.0 • Published 3 years ago
sc136 v1.1.0
sc136
Just A Simple Utility Package!
Join My Discord Server For More!
Contents
Installation
npm install sc136
Functions
- Shorten (Shortens The String To A Specified Length!)
- Reverse (Reverses The String!)
- genRandomHex (Genrates A Random Hex Color Code!)
Usage
Shorten
(Shortens The String To A Specified Length!)
const sc = require('sc136'); // Importing The Package
let text = 'hi how are you'; // A String
console.log(sc.Shorten(text, 6)); // First Argument Is The String, Second Is A Number
// returns: 'hi how...'
Reverse
(Reverses The String!)
const sc = require('sc136'); // Importing The Package
let text = 'hi how are you';
console.log(sc.Reverse(text)); // First Argument Is A String
// returns: 'uoy era woh ih'
genRandomHex
(Genrates A Random Hex Color Code!)
const sc = require('sc136'); // Importing The Package
console.log(sc.genRandomHex()) // No Arguments Needed
// returns: '#0059ff'
Join My Discord Server For More!