2.0.41 • Published 2 years ago

@snickbit/upwords v2.0.41

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

@snickbit/upwords

Helper function to convert a string to title case, attempting to preserve acronyms and special case words like "of" and "iPhone".

Installation

yarn add @snickbit/upwords
npm add @snickbit/upwords

Basic Usage

import upwords from '@snickbit/upwords'

upwords('hello') // 'Hello'
upwords('hello world') // 'Hello World'
upwords('iphone') // 'iPhone'
upwords('usd') // 'USD'
upwords('d&d') // 'D&D'
upwords('created_at') // 'Created at'
upwords('created__at') // 'Created at'
upwords('i-like-to--play--d&d-in-3d') // 'I Like to Play D&D in 3D'

License

Copyright (c) 2022 - Nicholas Lowe aka Snickbit

MIT License

2.0.41

2 years ago

2.0.40

2 years ago

2.0.39

2 years ago

2.0.37

2 years ago

2.0.38

2 years ago

2.0.35

3 years ago

2.0.36

3 years ago

2.0.33

3 years ago

2.0.34

3 years ago

2.0.31

3 years ago

2.0.32

3 years ago

1.0.0

3 years ago

2.0.28

3 years ago

2.0.29

3 years ago

2.0.30

3 years ago

2.0.26

3 years ago

2.0.27

3 years ago

2.0.24

3 years ago

2.0.25

3 years ago

2.0.22

3 years ago

2.0.23

3 years ago

2.0.21

3 years ago

2.0.19

3 years ago

2.0.17

3 years ago

2.0.15

3 years ago

2.0.16

3 years ago

2.0.20

3 years ago

2.0.14

3 years ago

2.0.13

3 years ago

2.0.12

3 years ago

2.0.11

3 years ago

2.0.10

3 years ago

2.0.9

3 years ago

2.0.8

3 years ago

2.0.7

3 years ago

2.0.5

3 years ago

2.0.4

3 years ago