npm

Share private packages across your team with npm Orgs, now with simplified billing via the aws marketplace!Learn more »

@kaartiksingh23/tiny

2.4.1 • Public • Published

@kaartiksingh23/tiny

npm (scoped)

String Utility Functions

Install

$ npm install @kaartiksingh23/tiny

Usage

const tiny = require("@kaartiksingh23/tiny");
 
tiny.replace("So much much space!","much","little");
//=> "So little little space!"
 
tiny.replace(1337);
//=> Uncaught TypeError: Tiny wants a string!
//    at tiny (<anonymous>:2:41)
//    at <anonymous>:1:1
 
tiny.concat(['ABC'+'DEF'+'GHI']);
//=> "ABCDEFGHI"
 
tiny.concat('ABC'+'DEF'+'GHI');
//=> Uncaught TypeError: Tiny wants a array!
//    at tiny (<anonymous>:2:41)
//    at <anonymous>:1:1
 
tiny.capitalize(1234);
//=> Uncaught TypeError: Tiny wants a array!
//    at tiny (<anonymous>:2:41)
//    at <anonymous>:1:1
 
tiny.capitalize("kAArtik");
//=>"Kaartik"
 

install

npm i @kaartiksingh23/tiny

Downloadsweekly downloads

0

version

2.4.1

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability