🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@ax2/dayjs-module

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ax2/dayjs-module

Day.js integration for Nuxt

latest
Source
npmnpm
Version
0.1.2
Version published
Weekly downloads
4
Maintainers
1
Weekly downloads
 
Created
Source

dayjs-module

npm (scoped with tag) npm Dependencies Code Style

Day.js integration for Nuxt

📖 Release Notes

Features

Integrate Day.js with your Nuxt project.

Setup

  • Install the module with your favorite package manager.
yarn add @ax2/dayjs-module
# Or npm i @ax2/dayjs-module
  • Add dayjs-module to modules section of nuxt.config.js.
// nuxt.config.js

{
  modules: [
    '@ax2/dayjs-module',
 ],
}
  • Configure the module as needed by adding a dayjs key to nuxt.config.js.
// nuxt.config.js

{
  dayjs: {
    // Module options
  }
}

Usage

At the moment, all the module does is inject Day.js into Vue instances so you can call it from anywhere in your app:

<template>
  <div>
    {{ $dayjs('2018-09-18').format('dddd, MMMM DD, YYYY') }}
    <!-- Renders: Tuesday, September 18, 2018 -->
  </div>
</template>

Development

  • Clone this repository
  • Install dependencies using yarn install or npm install
  • Start development server using npm run dev

License

MIT License

Copyright (c) Ax2 Inc.

FAQs

Package last updated on 15 Mar 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts