string-it-on

1.1.1 • Public • Published

string-it-on Node Module

npm version npm downloads

Live Here!

A simple node module that performs string manipulation! This includes:

  • Capitalizing sentences
  • All caps
  • Capitalizing each word
  • Capitalizing titles
  • Removing extra spaces
  • Transforming into kebab-case, snake_case, camelCase, and PascalCase
  • Turning a sentence into hashtags
  • Testing if a string is empty!

Output

capitalizeSentence('hello'); // "Hello"
allCaps('hello'); // "HELLO"
capitalizeWords('hello world'); // "Hello World"
capitalizeHeadline('the hello in for the world'); // "The Hello in for the World"
removeExtraSpaces('   Hello   World   '); // "Hello World"
kebabCase('Hello World'); // "hello-world"
snakeCase('Hello World'); // "hello_world"
camelCase('Hello World'); // "helloWorld"
pascalCase('Hello World'); // "HelloWorld"
shift('Hello World'); // "ello WorldH"
makeHashTag('Amazing bongo drums for sale'); // "#amazing #bongo #drums"
isEmpty(''); // true
isEmpty('Hello'); // false
isEmpty('   '); // true
isEmpty(`\n 
    \t 
 \r   `); // true

Package Sidebar

Install

npm i string-it-on

Weekly Downloads

6

Version

1.1.1

License

ISC

Unpacked Size

6.48 kB

Total Files

5

Last publish

Collaborators

  • i.dev