Skip to content

Commit 53faac0

Browse files
committedSep 21, 2024
docs: edit readme
1 parent 20b85c8 commit 53faac0

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed
 

‎README.md

+5-3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
[![npm version][npm-version-src]][npm-version-href]
33
[![npm downloads][npm-downloads-src]][npm-downloads-href]
44
[![bundle][bundle-src]][bundle-href]
5+
[![Codecov][codecov-src]][codecov-href]
56

67
`vue-lux` is a Vue 3 library that simplifies DateTime formatting and parsing using the powerful Luxon library. Inspired by [vue-luxon](https://github.com/casbloem/vue-luxon).
78

@@ -15,7 +16,7 @@ npm i vue-lux
1516

1617
### Vue
1718

18-
```javascript
19+
```ts
1920
import { createApp } from 'vue'
2021
import VueLuxon from 'vue-lux'
2122
import App from './App.vue'
@@ -32,7 +33,7 @@ app.mount('#app')
3233
```
3334

3435
### Nuxt
35-
```javascript
36+
```ts
3637
export default defineNuxtConfig({
3738
modules: ['vue-lux/nuxt'],
3839
lux: {
@@ -92,7 +93,6 @@ this.$lp('2020-10-05 22:36', 'yyyy-MM-dd HH:mm')
9293
## Settings
9394

9495
You can define the default input and output settings in the plugin options.
95-
9696
```
9797
{
9898
input: {
@@ -324,3 +324,5 @@ Full list of tokens can be found [here](https://moment.github.io/luxon/#/formatt
324324
[npm-downloads-href]: https://npmjs.com/package/vue-lux
325325
[bundle-src]: https://img.shields.io/bundlephobia/minzip/vue-lux?style=flat&colorA=080f12&colorB=1fa669
326326
[bundle-href]: https://bundlephobia.com/result?p=vue-lux
327+
[codecov-src]: https://img.shields.io/codecov/c/gh/dnldsht/vue-lux/main?style=flat&colorA=080f12&colorB=1fa669
328+
[codecov-href]: https://codecov.io/gh/dnldsht/vue-lux

0 commit comments

Comments
 (0)