/string-tool

Useful functions for JavaScript strings

Primary LanguageTypeScript

string-tool

Build Status Dependencies Development Dependencies

npm

Usage

Import what you need

import { capitalize } from 'string-tool';
  • capitalize
  • nthIndexOf
  • cutFirst
  • cutBefore
  • cutBeforeIndex

Contributing

Download source and compile:

git clone git@github.com:JannesMeyer/string-tool.git
yarn

Compile and watch for file changes:

yarn start

Run tests:

yarn test

Pull requests welcome. Please respect the existing formatting and indentation style. Furthermore, please add tests for code that you contribute.

License

LGPL v3.0