0.0.10 • Published 9 months ago

@kklab/stryle v0.0.10

Weekly downloads
-
License
MIT
Repository
gitlab
Last release
9 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

9 months ago

0.0.10

9 months ago

0.0.9

9 months ago

0.0.8

9 months ago

0.0.5

9 months ago

0.0.4

9 months ago

0.0.7

9 months ago

0.0.6

9 months ago

0.0.2

10 months ago

0.0.1

10 months ago