File tree Expand file tree Collapse file tree 3 files changed +10
-4
lines changed Expand file tree Collapse file tree 3 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 1
1
# @kieranwv/utils
2
2
3
- [ ![ Version] ( https://img.shields.io/github/v/release/kieranwv/utils?style=flat&label=released&color=%2309090b )] ( https://github.com/kieranwv/utils/releases )
4
- [ ![ Version] ( https://img.shields.io/npm/v/@kieranwv/utils?style=flat&label=npm&color=09090b )] ( https://www.npmjs.com/package/@kieranwv/utils )
3
+ [ ![ GitHub Release Version] ( https://img.shields.io/github/v/release/kieranwv/utils?label=Release&color=%42b883 )] ( https://github.com/kieranwv/utils/releases )
4
+ [ ![ NPM Version] ( https://img.shields.io/npm/v/starter-lib-vue3?style=flat&label=npm&color=%42b883 )] ( https://www.npmjs.com/package/starter-lib-vue3 )
5
+ [ ![ Build Status] ( https://github.com/kieranwv/utils/actions/workflows/ci.yml/badge.svg?branch=main&color=%42b883 )] ( https://github.com/kieranwv/utils/actions/workflows/ci.yml )
5
6
6
7
Collection of common JavaScript / TypeScript utils by @kieranwv .
7
8
@@ -19,9 +20,10 @@ const db = new IndexedDB()
19
20
20
21
## Utils
21
22
22
- | name | description |
23
- | -------------------------------- | -------------------------------------- |
23
+ | name | description |
24
+ | ---------------------------------- | -- -------------------------------------- |
24
25
| [ ` IndexedDB ` ] ( ./src/indexed-db.ts ) | The CRUD class for indexedDB in browser. |
26
+ | [ ` toLowerCase ` ] ( ./src/format.ts ) | Converts string characters to lowercase. |
25
27
26
28
## License
27
29
Original file line number Diff line number Diff line change
1
+ export function toLowerCase ( input : string ) : string {
2
+ return input . replace ( / ( [ a - z ] ) ( [ A - Z ] ) / g, '$1-$2' ) . toLowerCase ( ) . replace ( / \s + / g, '-' )
3
+ }
Original file line number Diff line number Diff line change
1
+ export * from './format'
1
2
export * from './indexed-db'
You can’t perform that action at this time.
0 commit comments