Socket
Book a DemoInstallSign in
Socket

@salestrip/string

Package Overview
Dependencies
Maintainers
4
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@salestrip/string

String utilities

1.1.0
latest
Source
npmnpm
Version published
Weekly downloads
51
-23.88%
Maintainers
4
Weekly downloads
 
Created
Source

@salestrip/string

Codefresh build status

String utilities.

Install

npm i -S @salestrip/string

Usage

Some example uses are included below including some of the domain-specific behaviours. Please refer to the test suite for further examples.

const string = require('@salestrip/string')

string.camelize('some-string.type') // 'someStringType'

string.constantize('some-str.type') // 'SOME_STR_TYPE'

string.titleize('man from uncle') // 'Man from Uncle'

string.singularize('travellers') // 'person'

string.pluralize('traveller') // 'people'

Release

To release a new version, use npm. Using npm version will update the version in package.json before committing the resulting file change to git and adding the appropriate git tag. Pushing a tagged version to origin will trigger a CI deployment to the npm registry.

To release a bugfix update the patch version.

npm version patch
git push
git push --tags

To release a feature update the minor version.

npm version minor
git push
git push --tags

To release a breaking change update the major version.

npm version major
git push
git push --tags

License

Copyright © 2019 SalesTrip Limited. All rights reserved.

Keywords

string

FAQs

Package last updated on 17 Feb 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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.