Small collection of string utilities
npm install @plandek-utils/ts-string-utils@plandek-utils/ts-string-utils


TypeDoc generated docs in here
utils for strings
- initials
initials([string=''])Returns the first character of each space seperated word in the given string.
#### Arguments[string=''] (string): The string to convert to initials.
#### Returns
(string): Returns the converted string
#### Exampleinitials('foo bar doe');
// => 'f b d'
For commits, you should use commitizen
``sh
npm install -g commitizen
As typescript-starter docs state:
This project is tooled for conventional changelog to make managing releases easier. See the standard-version documentation for more information on the workflow, or
CHANGELOG.md for an example.`sh
bump package.json version, update CHANGELOG.md, git tag the release
npm run version
`wip helpful for managing work in progress before you're ready to create a meaningful commit.$3
Once you are ready to create the first version, run the following (note that
reset is destructive and will remove all files not in the git repo from the directory).`sh
Reset the repo to the latest commit and build everything
npm run reset && npm run testThen version it with standard-version options. e.g.:
don't bump package.json version
npm run version -- --first-releaseOther popular options include:
PGP sign it:
$ npm run version -- --sign
alpha release:
$ npm run version -- --prerelease alpha
`And finally push the new tags to Github and publish the package to
npm.`sh
Push to git
git push --follow-tags origin masterPublish to NPM (allowing public access, required if the package name is namespaced like
@somewhere/some-lib)
npm publish --access public
`$3
There is a single command for preparing a new release:
`sh
Prepare a standard release
npm run prepare-releasePush to git
git push --follow-tags origin masterPublish to NPM (allowing public access, required if the package name is namespaced like
@somewhere/some-lib)
npm publish --access public
``