Gathering detailed insights and metrics for @awes-io/dayjs
Gathering detailed insights and metrics for @awes-io/dayjs
npm install @awes-io/dayjs
Typescript
Module System
Node Version
NPM Version
70.2
Supply Chain
78.3
Quality
79.7
Maintenance
100
Vulnerability
100
License
Vue (58.23%)
JavaScript (29.03%)
CSS (12.67%)
Handlebars (0.07%)
Verify real, reachable, and deliverable emails with instant MX records, SMTP checks, and disposable email detection.
Total Downloads
10,867
Last Day
14
Last Week
40
Last Month
127
Last Year
1,592
8 Stars
956 Commits
4 Forks
1 Watchers
19 Branches
7 Contributors
Updated on Nov 06, 2023
Minified
Minified + Gzipped
Latest Version
0.5.0
Package Id
@awes-io/dayjs@0.5.0
Unpacked Size
12.52 kB
Size
4.39 kB
File Count
10
NPM Version
lerna/3.22.1/node@v16.11.1+x64 (darwin)
Node Version
16.11.1
Cumulative downloads
Total Downloads
Last Day
55.6%
14
Compared to previous day
Last Week
0%
40
Compared to previous week
Last Month
23.3%
127
Compared to previous month
Last Year
15%
1,592
Compared to previous year
Based on dayjs
yarn add @awes-io/dayjs
nuxt.config.js
1// nuxt.config.js 2 3export default { 4 modules: [ 5 // ... some other modules 6 '@awes-io/dayjs' 7 ] 8}
By default, the module will parse i18n.locales
in nuxt.config.js
to load additional localization
1<template> 2 <div> 3 {{ $dayjs(new Date()).format('DD/MM/YYYY') }} 4 </div> 5</template>
1export default { 2 data() { 3 return { 4 date: new Date() 5 } 6 }, 7 8 computed: { 9 formatted() { 10 return this.$dayjs(this.date).format('HH:mm:ss') 11 } 12 } 13}
1// nuxt.config.js 2 3export default { 4 modules: [ 5 // ... some other modules 6 '@awes-io/dayjs' 7 ], 8 9 awesIo: { 10 // default configuration 11 dayjs: { 12 stringFormat: { 13 pattern: null, 14 format: true 15 }, 16 plugins: [ 17 'dayjs/plugin/customParseFormat', 18 'dayjs/plugin/localizedFormat' 19 ] 20 } 21 } 22}
You may provide default format for parsing and formatting string dates, like this:
1export default { 2 modules: [ 3 // ... some other modules 4 '@awes-io/dayjs' 5 ], 6 7 awesIo: { 8 dayjs: { 9 // parse and format... 10 stringFormat: 'YYYY-MM-DD[T]HH:mm:ssZZ' 11 12 // ...or parsing only 13 // stringFormat: { 14 // pattern: 'YYYY-MM-DD[T]HH:mm:ssZZ', 15 // format: false 16 // } 17 } 18 } 19}
To add more plugins, pass an array to plugins
property, they will be merged with defaults
1export default { 2 modules: [ 3 // ... some other modules 4 '@awes-io/dayjs' 5 ], 6 7 awesIo: { 8 dayjs: { 9 plugins: [ 10 'dayjs/plugin/relativeTime', 11 { src: '~/assets/js/my-plugin', options: { something: true } } 12 ] 13 } 14 } 15}
Ensure to write proper commit message according to Git Commit convention
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
license file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
133 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-03-10
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More