open-index/open-npm huggingface dataset:
npm package: @gabortorma/moment-ages
Description: MomentJS for calculate ages
Author: Gábor Torma
Latest version: 1.0.0

# @gabortorma/moment-ages

This is a [Moment.js](https://github.com/moment/moment/) plugin that calculate ages and validate a date between two ages.

## Usage

### common js

```javascript
const moment = require('@gabortorma/moment-ages')
```

### module (esm)

```javascript
import moment from '@gabortorma/moment-ages'
```

### setup mode

```javascript
import moment from 'moment'
import setup from '@gabortorma/moment-ages/setup.js'

setup(moment)
```

## API

The objects returned by methods are **Moment.js** objects (except `.isBusinessDay()` and `.businessDiff()`) so you can
handle them with **Moment.js** native methods.

#### `.age(now: Date)` => object

Calculate the age from moment date, based on **now** paramters. Now default is `new Date()`. Return an object with the following structures:

```javascript
{
	years: Number,
	months : Number,
	days: Number,
}
```

#### `.ageFrom(input: Date)` => object

Calculate the age from **input** date, based on moment date. Return an object with the following structures:

```javascript
{
	years: Number,
	months : Number,
	days: Number,
}
```

#### `.isAgeBetween(from: Number, to: Number, now: Date)` => boolean

Check the moment date is between from and to range, based on on **now** paramters. Now default is `new Date()`.

#### When range is between 30 and 40 and now is 2023-01-31'

```javascript
// birth at 1993-02-01 (a day before 30th birth date)
moment('1993-02-01').isAgeBetween(30, 40, '2023-01-31') // false

// 'birth at 1993-01-31 (on 30th birth date)
moment('1993-01-31').isAgeBetween(30, 40, '2023-01-31') // true

// birth at 1982-02-01 (a day before 41th birth date)
moment('1982-02-01').isAgeBetween(30, 40, '2023-01-31') // true

// birth at 1982-01-31 (on 41th birth date)
moment('1982-01-31').isAgeBetween(30, 40, '2023-01-31') // false
```

## Installation

```
// For Node.js
$ npm install @gabortorma/moment-ages

// ...or install and save in package.json
$ npm install --save @gabortorma/moment-ages
```

## Testing

```
npm test
```
npm package: @gabortorma/mwm-nitro-plugin-template
Description: My new Nitro plugin
Latest version: 0.9.3

# mwm-nitro-plugin-template

[![npm version][npm-version-src]][npm-version-href]
[![npm downloads][npm-downloads-src]][npm-downloads-href]
[![License][license-src]][license-href]
[![code style][code-style-src]][code-style-href]

_description_

[🏀 Online playground](https://stackblitz.com/github/gabortorma/mwm-nitro-plugin-template?file=playground%2Fapp.vue)

## Install

```bash
pnpm install add -D @gabortorma/mwm-nitro-plugin-template
```

## Usage

### Nuxt

Add the plugin to your `nuxt.config.js`:

```ts
export default defineNuxtConfig({
  nitro: {
    plugins: ['@gabortorma/mwm-nitro-plugin-template']
  }
})
```

### Nitro

Add the plugin to your `nitro.config.js`:

```ts
export default defineNitroConfig({
  plugins: ['@gabortorma/mwm-nitro-plugin-template']
})
```

## Release

Add your `GITHUB_TOKEN` to `.env` file or use web based login:

```bash
GITHUB_TOKEN=your_token
```

<!-- Badges -->

[npm-version-src]: https://img.shields.io/npm/v/@gabortorma/mwm-nitro-plugin-template/latest.svg?style=flat&colorA=18181B&colorB=28CF8D
[npm-version-href]: https://npmjs.com/package/@gabortorma/mwm-nitro-plugin-template
[npm-downloads-src]: https://img.shields.io/npm/dm/@gabortorma/mwm-nitro-plugin-template.svg?style=flat&colorA=18181B&colorB=28CF8D
[npm-downloads-href]: https://npmjs.com/package/@gabortorma/mwm-nitro-plugin-template
[license-src]: https://img.shields.io/npm/l/@gabortorma/mwm-nitro-plugin-template.svg?style=flat&colorA=18181B&colorB=28CF8D
[license-href]: https://npmjs.com/package/@gabortorma/mwm-nitro-plugin-template
[code-style-src]: https://antfu.me/badge-code-style.svg
[code-style-href]: https://github.com/gabortorma/antfu-eslint-config
npm package: @gabortorma/mwm-nuxt-layer-template
Description: [![npm version][npm-version-src]][npm-version-href] [![npm downloads][npm-downloads-src]][npm-downloads-href] [![License][license-src]][license-href] [![code style][code-style-src]][code-style-href]
Author: gabortorma
Latest version: 0.9.3

# mwm-nuxt-layer-template

[![npm version][npm-version-src]][npm-version-href]
[![npm downloads][npm-downloads-src]][npm-downloads-href]
[![License][license-src]][license-href]
[![code style][code-style-src]][code-style-href]

_description_

[🏀 Online playground](https://stackblitz.com/github/gabortorma/mwm-nuxt-layer-template?file=playground%2Fapp.vue)

## Install

```bash
pnpm add -D @gabortorma/mwm-nuxt-layer-template
```

## Usage

Add the dependency to `extends` section in your `nuxt.config`:

```ts
defineNuxtConfig({
  extends: [
    '@gabortorma/mwm-nuxt-layer-template'
  ]
})
```

<!-- Badges -->

[npm-version-src]: https://img.shields.io/npm/v/@gabortorma/mwm-nuxt-layer-template/latest.svg?style=flat&colorA=18181B&colorB=28CF8D
[npm-version-href]: https://npmjs.com/package/@gabortorma/mwm-nuxt-layer-template
[npm-downloads-src]: https://img.shields.io/npm/dm/@gabortorma/mwm-nuxt-layer-template.svg?style=flat&colorA=18181B&colorB=28CF8D
[npm-downloads-href]: https://npmjs.com/package/@gabortorma/mwm-nuxt-layer-template
[license-src]: https://img.shields.io/npm/l/@gabortorma/mwm-nuxt-layer-template.svg?style=flat&colorA=18181B&colorB=28CF8D
[license-href]: https://npmjs.com/package/@gabortorma/mwm-nuxt-layer-template
[code-style-src]: https://antfu.me/badge-code-style.svg
[code-style-href]: https://github.com/gabortorma/antfu-eslint-config
npm package: @gabortorma/mwm-nuxt-module-template
Description: My new Nuxt module
Latest version: 0.2.6

# mwm-nuxt-module-template

[![npm version][npm-version-src]][npm-version-href]
[![npm downloads][npm-downloads-src]][npm-downloads-href]
[![License][license-src]][license-href]
[![code style][code-style-src]][code-style-href]

_description_

[🏀 Online playground](https://stackblitz.com/github/gabortorma/mwm-nuxt-module-template?file=playground%2Fapp.vue)

## Install

```bash
pnpm install add -D @gabortorma/mwm-nuxt-module-template
```

## Usage

### Nuxt

Add the plugin to your `nuxt.config.js`:

```ts
export default defineNuxtConfig({
  modules: [
    '@gabortorma/mwm-nuxt-module-template'
  ],

  mwmNuxtModuleTemplate: {
    // your module options
  }
})
```

## Release

Add your `GITHUB_TOKEN` to `.env` file or use web based login:

```bash
GITHUB_TOKEN=your_token
```

<!-- Badges -->

[npm-version-src]: https://img.shields.io/npm/v/@gabortorma/mwm-nuxt-module-template/latest.svg?style=flat&colorA=18181B&colorB=28CF8D
[npm-version-href]: https://npmjs.com/package/@gabortorma/mwm-nuxt-module-template
[npm-downloads-src]: https://img.shields.io/npm/dm/@gabortorma/mwm-nuxt-module-template.svg?style=flat&colorA=18181B&colorB=28CF8D
[npm-downloads-href]: https://npmjs.com/package/@gabortorma/mwm-nuxt-module-template
[license-src]: https://img.shields.io/npm/l/@gabortorma/mwm-nuxt-module-template.svg?style=flat&colorA=18181B&colorB=28CF8D
[license-href]: https://npmjs.com/package/@gabortorma/mwm-nuxt-module-template
[code-style-src]: https://antfu.me/badge-code-style.svg
[code-style-href]: https://github.com/gabortorma/antfu-eslint-config
npm package: @gabortorma/nuxt-dayjs-business-days
Description: Extend dayjs-nuxt plugin with business days.
Latest version: 0.4.1

# Nuxt Dayjs business days plugin

Extend [dayjs-nuxt](https://github.com/fumeapp/dayjs) plugin with business days via [@reediculous456/dayjs-business-days](https://github.com/reediculous456/dayjs-business-days) plugin

- [✨ &nbsp;Release Notes](/CHANGELOG.md)

## Quick Setup

1. Add `nuxt-dayjs-i18n` dependency to your project

```bash
# Using pnpm
pnpm add -D @gabortorma/nuxt-dayjs-business-days

# Using yarn
yarn add --dev @gabortorma/nuxt-dayjs-business-days

# Using npm
npm install --save-dev @gabortorma/nuxt-dayjs-business-days
```

2. Add `nuxt-dayjs-business-days` to the `modules` section of `nuxt.config.ts`

```js
export default defineNuxtConfig({
  modules: ['nuxt-dayjs', '@gabortorma/nuxt-dayjs-business-days'],
})
```

## Configuration

You can specify the special dates, debug and verbose options

```ts
export default defineNuxtConfig({
  ...
  dayjsBusinessDays: {
    holidays: ['2022-11-01'],
    additionalWorkingDays: ['2022-10-15'],
    holidayFormat: 'YYYY-MM-DD', // default
    additionalWorkingDayFormat: 'YYYY-MM-DD', // default
    debug: true, // default: false
    verbose: true, // default: false
  }
  ...
})
```

## Usage Guide

See the original plugin: [@reediculous456/dayjs-business-days](https://github.com/reediculous456/dayjs-business-days)

## Development

```bash
# Install dependencies
npm install

# Generate type stubs
npm run dev:prepare

# Develop with the playground
npm run dev

# Build the playground
npm run dev:build

# Run ESLint
npm run lint

# Run Vitest
npm run test
npm run test:watch

# Release new version
npm run release
```
npm package: @gabortorma/nuxt-eslint-layer
Description: Preconfigured eslint for Nuxt 3
Author: GaborTorma
Latest version: 1.0.0

# nuxt-eslint-layer

[![npm version][npm-version-src]][npm-version-href]
[![npm downloads][npm-downloads-src]][npm-downloads-href]
[![License][license-src]][license-href]
[![code style][code-style-src]][code-style-href]

Preconfigured eslint for Nuxt 3

## Install

```bash
pnpm add -D @gabortorma/nuxt-eslint-layer
```

## Usage

Add the dependency to `extends` section in your `nuxt.config`:

```ts
defineNuxtConfig({
  extends: [
    '@gabortorma/nuxt-eslint-layer'
  ]
})
```

### Dependencies

Other necessary dependencies will be installed automatically.

<!-- Badges -->

[npm-version-src]: https://img.shields.io/npm/v/@gabortorma/nuxt-eslint-layer/latest.svg?style=flat&colorA=18181B&colorB=28CF8D
[npm-version-href]: https://npmjs.com/package/@gabortorma/nuxt-eslint-layer
[npm-downloads-src]: https://img.shields.io/npm/dm/@gabortorma/nuxt-eslint-layer.svg?style=flat&colorA=18181B&colorB=28CF8D
[npm-downloads-href]: https://npmjs.com/package/@gabortorma/nuxt-eslint-layer
[license-src]: https://img.shields.io/npm/l/@gabortorma/nuxt-eslint-layer.svg?style=flat&colorA=18181B&colorB=28CF8D
[license-href]: https://npmjs.com/package/@gabortorma/nuxt-eslint-layer
[code-style-src]: https://antfu.me/badge-code-style.svg
[code-style-href]: https://github.com/gabortorma/antfu-eslint-config
npm package: @gabortorma/nuxt-feathers-pinia
Description: The Nuxt module for [Feathers Pinia](https://v2.feathers-pinia.pages.dev)
Latest version: 0.2.1

# nuxt-feathers-pinia

The Nuxt module for [Feathers Pinia](https://v2.feathers-pinia.pages.dev)

## Installation

```bash
npm i feathers-pinia nuxt-feathers-pinia
```

Open `nuxt.config.ts` and add it to the `modules`:

```ts
// https://v3.nuxtjs.org/api/configuration/nuxt.config
export default defineNuxtConfig({
  modules: [
    '@pinia/nuxt',
    'nuxt-feathers-pinia',
  ],
  // Allows you to put stores and models in their own folders
  imports: {
    dirs: [
      'stores',
      'models',
    ],
  },
  // Enable Nuxt Takeover Mode: https://nuxt.com/docs/getting-started/installation#prerequisites
  typescript: {
    shim: false,
  },
  // optional: https://vuejs.org/guide/extras/reactivity-transform.html
  experimental: {
    reactivityTransform: true,
  },
})
```

## API Overview

This module provides two features:

- A set of composables for working with Feathers-Pinia and Nuxt
- Enables auto-import for key [Feathers-Pinia composables](https://v2.feathers-pinia.pages.dev/guide/nuxt-module)

## Development

The Nuxt development playground seems to be broken as of Jan 1, 2023. Instead of using the playground,
use the following instructions:

- just make the changes and run `npm pack` to get a `.tgz` file.
- copy the `.tgz` file into another project.
- run `npm i ./path-to-file.tgz`
- see if it works.
npm package: @gabortorma/nuxt-vuetify-layer
Description: ## Install
Author: gabortorma
Latest version: 0.0.1

# Nuxt Vuetify Layer

## Install

```bash
pnpm add -D @gabortorma/nuxt-vuetify-layer
```

## Usage

Then add the dependency to their `extends` in `nuxt.config`:

```js
defineNuxtConfig({
  extends: [
    '@gabortorma/nuxt-vuetify-layer'
  ]
})
```

## Configuration

This layer is a preset for the [vuetify-nuxt-module](https://nuxt.com/modules/vuetify-nuxt-module). You can configure it by adding a `vuetify` key to your `nuxt.config`:

```js
defineNuxtConfig({
  vuetify: [
    // your config based
  ]
})
```
npm package: @gabortorma/nuxt-vuetify3-dialog
Description: Nuxt Vuetify3 dialog module
Latest version: 1.2.9

# Nuxt Vuetify3 Dialog module

[![npm version][npm-version-src]][npm-version-href]
[![npm downloads][npm-downloads-src]][npm-downloads-href]
[![License][license-src]][license-href]
[![Nuxt][nuxt-src]][nuxt-href]
[![code style][code-style-src]][code-style-href]

Nuxt module for implementing [vuetify3-dialog](https://github.com/ThomasLeconte/vuetify3-dialog)

- [✨ &nbsp;Release Notes](/CHANGELOG.md)
- [🏀 Online playground](https://stackblitz.com/github/gabortorma/nuxt-vuetify3-dialog)

## Features

Lite module working with Vuetify, allowing you to show dialogs or snackbars programatically.

See the original plugin [vuetify3-dialog](https://github.com/ThomasLeconte/vuetify3-dialog)

## Quick Setup

1. Add `nuxt-veutify3-dialog` dependency to your project

```bash
# Using pnpm
pnpm add -D @gabortorma/nuxt-vuetify3-dialog

# Using yarn
yarn add --dev @gabortorma/nuxt-vuetify3-dialog

# Using npm
npm install --save-dev @gabortorma/nuxt-vuetify3-dialog
```

2. Add `@gabortorma/nuxt-vuetify3-dialog` to the `modules` section of `nuxt.config.ts`

```js
export default defineNuxtConfig({
  modules: ['@gabortorma/nuxt-vuetify3-dialog', 'vuetify-nuxt-module'],
  vuetifyDialog: {
    defaults: {
      // You can pass default options for dialogs, dialog's card, snackbars or bottom-sheets here
    },
    debug: true, // default: false
    verbose: true, // default: false
  },
})
```

That's it! You can now use Vuetify3 Dialog Module in your Nuxt app ✨

## Development

```bash
# Install dependencies
npm install

# Generate type stubs
npm run dev:prepare

# Develop with the playground
npm run dev

# Build the playground
npm run dev:build

# Run ESLint
npm run lint

# Run Vitest
npm run test
npm run test:watch

# Release new version
npm run release
```

<!-- Badges -->

[npm-version-src]: https://img.shields.io/npm/v/@gabortorma/nuxt-vuetify3-dialog/latest.svg?style=flat&colorA=18181B&colorB=28CF8D
[npm-version-href]: https://npmjs.com/package/@gabortorma/nuxt-vuetify3-dialog
[npm-downloads-src]: https://img.shields.io/npm/dm/@gabortorma/nuxt-vuetify3-dialog.svg?style=flat&colorA=18181B&colorB=28CF8D
[npm-downloads-href]: https://npmjs.com/package/@gabortorma/nuxt-vuetify3-dialog
[license-src]: https://img.shields.io/npm/l/@gabortorma/nuxt-vuetify3-dialog.svg?style=flat&colorA=18181B&colorB=28CF8D
[license-href]: https://npmjs.com/package/@gabortorma/nuxt-vuetify3-dialog
[nuxt-src]: https://img.shields.io/badge/Nuxt-18181B?logo=nuxt.js
[nuxt-href]: https://nuxt.com
[code-style-src]: https://antfu.me/badge-code-style.svg
[code-style-href]: https://github.com/antfu/eslint-config
npm package: @gabortorma/release-it-buildver-plugin
Description: Build Versioning plugin for Release It!
Author: Gábor Torma
Latest version: 2.1.1

## release-it-buildver-plugin

## Build Versioning plugin for Release It!

This plugin enables Build Versioning with Release It!

```
npm install --save-dev @gabortorma/release-it-buildver-plugin
```

Based on release-it default version plugin. Inspired by [release-it-calver-plugin](https://github.com/casmith/release-it-calver-plugin).

⚠️ Yarn package manager used for update version in package.json file, because npm cut it.

In [release-it](https://github.com/release-it/release-it) config:

```js
"plugins": {
  "@gabortorma/release-it-buildver-plugin": {
    "versionArgs": [], // any args for yarn version
    "build": {  // prefix and suffix build versioning
      "prefix": "b", 
      "prefixSeparator": ".",
      "suffixSeparator": "-",
      "suffix": "live",
      "start": 1000, // start build version
    },
  }
}
"npm": {
  "publish": false,
  "allowSameVersion": true, // need to allow same version for build release
},

```

Version format: `major.minor.patch+buildmeta`

Build meta format: `prefix + prefixSeparator + build + suffixSeparator + suffix` 

#### Configuration examples:

##### Defaults
```js
{
  "versionArgs": [],
  "build": {
    "prefix": "build",
    "prefixSeparator": ".",
    "suffixSeparator": "-",
  },
}
```
##### Output when latestVersion is `1.1.0+build.0` 
```
1.1.0+build.1 // build version is incremented 
1.1.1+build.1 // patch version is incremented 
1.2.0+build.1 // minor version is incremented 
2.0.0+build.1 // major version is incremented 
1.1.1-0+build.1 // prepatch version is incremented 
1.2.0-0+build.1 // preminor version is incremented 
2.0.0-0+build.1 // premajor version is incremented 
```

##### Custom
```json
{
  "build": {
    "prefix": "b",
    "prefixSeparator": ".",
    "suffixSeparator": "-",
    "suffix": "prod",
    "start": 1000
  },
}
```
##### Output when latestVersion is `1.1.0`. Result will be chained.
```
1.1.0+b.1000-prod // build version is incremented based on 1.1.0
1.1.1-0+b.1001-prod // prepatch version is incremented based on 1.1.0+b.1000-prod
1.1.1+b.1002-prod // patch version is incremented based on 1.1.0+b.1001-prod
1.2.0-0+b.1003-prod // preminor version is incremented based on 1.1.1+b.1002-prod
1.2.0+b.1004-prod // minor version is incremented based on 1.2.0-0+b.1003-prod
2.0.0-0+b.1005-prod // premajor version is incremented based on 1.2.0+b.1004-prod
2.0.0+b.1006-prod // major version is incremented based on 2.0.0-0+b.1005-prod
```