0.0.2 • Published 9 months ago

@memochou1993/stryle v0.0.2

Weekly downloads
-
License
MIT
Repository
github
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 '@memochou1993/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/@memochou1993/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.2

9 months ago

0.0.1

9 months ago