
Security News
Package Maintainers Call for Improvements to GitHub’s New npm Security Plan
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
@salestrip/string
Advanced tools
String utilities.
npm i -S @salestrip/string
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'
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
Copyright © 2019 SalesTrip Limited. All rights reserved.
FAQs
String utilities
We found that @salestrip/string demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
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.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.