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

@t0ri/strings

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@t0ri/strings

![npm](https://img.shields.io/npm/v/@t0ri/strings) [![Build Status](https://travis-ci.com/t0ri/strings-lib.svg?branch=master)](https://travis-ci.com/t0ri/strings-lib) [![Coverage Status](https://coveralls.io/repos/github/t0ri/strings-lib/badge.svg?branch=

  • 1.2.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

npm Build Status Coverage Status GitHub stars GitHub last commit GitHub issues number one badge number one badge GitHub commit activity

A String Library

from your friend Tori

:wave: :wave: :wave:

string.capitalize()

A capitalization method with many options.

let string = 'hello how are you'

string.capitalize('all') -> output: HELLO HOW ARE YOU

string.capitalize('firstLetter') -> output: Hello how are you

string.capitalize('allFirstLetter') -> output: Hello How Are You

string.clean()

A method that will clean spaces from your strings.

let string = ' hello how are you '

string.clean('trimSpaces') -> output: 'hello how are you'

string.clean('trimAllSpaces') -> output: 'hello how are you'

string.changeCase()

A method that will change the casing of your code.

let string = ' hello how are you?'

string.changeCase('kabob') -> output: hello-how-are-you

string.changeCase('snake') -> output: hello_how_are_you

string.changeCase('camel') -> output: helloHowAreYou

FAQs

Package last updated on 12 Nov 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