0.0.10 • Published 10 months ago

@kklab/stryle v0.0.10

Weekly downloads
-
License
MIT
Repository
gitlab
Last release
10 months ago

stryle

A collection of utility functions for transforming string case.

Usage

Using with ES Modules

Import the module and use it in your code:

import { toTitleCase } from '@kklab/stryle';

const output = toTitleCase('hello, stryle!', {
  fixedTerms: ['STRYLE'],
});

console.log(output);
// Output:
// Hello, STRYLE!

Using with UMD Modules

Include the UMD script in your HTML file and use it:

<script src="https://unpkg.com/@kklab/stryle/dist/index.umd.js"></script>
<script>
const output = window.Stryle.toTitleCase('hello, stryle!', {
  fixedTerms: ['STRYLE'],
});

console.log(output);
// Output:
// Hello, STRYLE!
</script>

Development

To start a local development server, run:

npm run dev

Testing

To run the tests for this package, run:

npm run test
0.0.3

10 months ago

0.0.10

10 months ago

0.0.9

10 months ago

0.0.8

10 months ago

0.0.5

10 months ago

0.0.4

10 months ago

0.0.7

10 months ago

0.0.6

10 months ago

0.0.2

11 months ago

0.0.1

11 months ago