# dayjs-with-plugins

> Day.js with all plugins and locales added out of the box, no need to use dayjs.extend nor dayjs.locale!

Latest version **1.0.4** (published 2024-06-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install dayjs-with-plugins
pnpm add dayjs-with-plugins
yarn add dayjs-with-plugins
bun add dayjs-with-plugins
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.4 |
| Published | 2024-06-25 |
| First published | 2019-10-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=14 |
| Dependencies | 0 |
| Unpacked size | 694.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 7 |
| Author | Nick Baugh |
| Keywords | all, alternative, date, day, dayjs, drop, fast, format, formatting, in, moment, momentjs, performance, plugins, replacement |

## Links

- npm: https://www.npmjs.com/package/dayjs-with-plugins
- Repository: https://github.com/ladjs/dayjs-with-plugins
- Issues: https://github.com/ladjs/dayjs-with-plugins/issues
- npm.io page: https://npm.io/package/dayjs-with-plugins

## Alternatives

- [eslint-plugin-sonarjs](https://npm.io/package/eslint-plugin-sonarjs.md) — 2.9M weekly downloads
- [eslint-config-expo](https://npm.io/package/eslint-config-expo.md) — 1.5M weekly downloads
- [@matter/protocol](https://npm.io/package/@matter/protocol.md) — 63.5K weekly downloads
- [@eventcatalog/linter](https://npm.io/package/@eventcatalog/linter.md) — 24.8K weekly downloads
- [@inrupt/eslint-config-base](https://npm.io/package/@inrupt/eslint-config-base.md) — 4.5K weekly downloads

## Recent versions

- 1.0.4 (latest) — 2024-06-25
- 1.0.3 — 2023-01-13
- 1.0.2 — 2022-07-01
- 1.0.1 — 2022-07-01
- 1.0.0 — 2022-06-29
- 0.0.4 — 2020-08-10
- 0.0.3 — 2019-10-10
- 0.0.2 — 2019-10-10
- 0.0.1 — 2019-10-10

## README

# dayjs-with-plugins

[![build status](https://github.com/ladjs/dayjs-with-plugins/actions/workflows/ci.yml/badge.svg)](https://github.com/ladjs/dayjs-with-plugins/actions/workflows/ci.yml)
[![code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/sindresorhus/xo)
[![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](https://github.com/prettier/prettier)
[![made with lass](https://img.shields.io/badge/made_with-lass-95CC28.svg)](https://lass.js.org)
[![license](https://img.shields.io/github/license/ladjs/dayjs-with-plugins.svg)](LICENSE)
[![npm downloads](https://img.shields.io/npm/dt/dayjs-with-plugins.svg)](https://npm.im/dayjs-with-plugins)

> Day.js with all plugins and locales added out of the box, no need to use `dayjs.extend` nor `dayjs.locale`!


## Table of Contents

* [Install](#install)
* [Usage](#usage)
  * [Node](#node)
  * [Browser](#browser)
  * [Debugging](#debugging)
* [Contributors](#contributors)
* [License](#license)


## Install

[npm][]:

```sh
npm install dayjs dayjs-with-plugins
```


## Usage

### Node

```js
const dayjs = require('dayjs-with-plugins');

console.log('M/D/YY', dayjs().format('M/D/YY'));
```

### Browser

#### VanillaJS

This is the solution for you if you're just using `<script>` tags everywhere!

```html
<script src="https://cdnjs.cloudflare.com/polyfill/v3/polyfill.min.js?features=Promise"></script>
<script src="https://unpkg.com/dayjs-with-plugins"></script>
<script type="text/javascript">
  (function() {
    console.log('M/D/YY', dayjs().format('M/D/YY'));
  })();
</script>
```

##### Required Browser Features

We recommend using <https://cdnjs.cloudflare.com/polyfill> (specifically with the bundle mentioned in [VanillaJS](#vanillajs) above):

```html
<script src="https://cdnjs.cloudflare.com/polyfill/v3/polyfill.min.js?features=Promise"></script>
```

* Promise is not supported in op\_mini all

#### Bundler

This assumes you are using [browserify][], [webpack][], [rollup][], or another bundler.

See [Node](#node) usage above for how to use in a bundler environment.

### Debugging

You can use `NODE_DEBUG=dayjs-with-plugins node app.js` to debug output from this package.


## Contributors

| Name           | Website                    |
| -------------- | -------------------------- |
| **Nick Baugh** | <http://niftylettuce.com/> |


## License

[MIT](LICENSE) © [Nick Baugh](http://niftylettuce.com/)


##

[npm]: https://www.npmjs.com/

[browserify]: https://github.com/browserify/browserify

[webpack]: https://github.com/webpack/webpack

[rollup]: https://github.com/rollup/rollup

---
_Source: https://npm.io/package/dayjs-with-plugins · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
