npm.io
1.1.0 • Published 5 years ago

sc136

Licence
ISC
Version
1.1.0
Deps
0
Size
3 kB
Vulns
0
Weekly
0

sc136

Just A Simple Utility Package!

Join My Discord Server For More!

NPM Info

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!