Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

string-it-on

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

string-it-on

string manipulation library

  • 1.1.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
33
increased by1000%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

FAQs

Package last updated on 23 Aug 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc