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

strings-library

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

strings-library

Library for string manipulation

  • 1.0.2
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

Strings Library

Description

This library includes basic string manupulation methods that you can call on string objects. Some including capitalizing words or switching cases of short (or long) phrases.

  • Github
  • NPM

Installation

Start by running this command in your project's directory

npm install strings-library --save

And then requring it on the top of your index.js file

require('strings-library')

Methods

MethodDescriptionExample inputExample output
.firstCharToUpper()returns the string with the first char capitalized'hello world''Hello world'
.allCaps()returns the string completely capitalized'hello world''HELLO WORLD'
.allfirstCharsToUpper()returns the string with the first letter of every word capitalized'hello world''Hello World'
.upperEveryOtherLetter()returns the string with every other letter capitalized'hello world''HeLlO wOrLd'
.removeWhiteSpace()returns the string with white space removed'  hello    world  ''hello world'
.kabobCase()returns the string in kabob-case'hello world'hello-world'
.snakeCase()returns the string in snake_case'hello world''hello_world'
.camelCase()returns the string in camelCase'hello world''helloWorld'

FAQs

Package last updated on 11 Jul 2019

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