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

@gravitywelluk/string-manipulation

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gravitywelluk/string-manipulation

Library of commonly used string manipulations

  • 1.0.4
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4
increased by100%
Maintainers
1
Weekly downloads
 
Created
Source

Gravitywell String-manipulation

Library of utility functions to manipulate strings

CI License Downloads Version


Table of Contents

Usage

import { <LIB_NAME_HERE> } from "@gravitywelluk/string-manipulation";

sentenceCase

Converts a strings 1st letter to uppercase

import { sentenceCase } from "@gravitywelluk/string-manipulation";

sentenceCase("the fox JUMPED over Brian's lazy dog");
// Output: "The fox JUMPED over Brian's lazy dog"

slurlgify

Converts the given slug into a slugified URL

import { slurlgify } from "@gravitywelluk/string-manipulation";

slurlgify("the fox JUMPED over Brian's lazy dog & cat + mouse");
// Output: "the-fox-jumped-over-brians-lazy-dog-and-cat-plus-mouse"

titleCase

Converts the given sentence string into title case

import { titleCase } from "@gravitywelluk/string-manipulation";

titleCase("the fox JUMPED over brian's lazy dog");
// Output: "The Fox Jumped over Brian's Lazy Dog"

Keywords

FAQs

Package last updated on 08 Oct 2021

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