Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

diff-ymd-package

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

diff-ymd-package - npm Package Compare versions

Comparing version 2.1.1 to 2.2.0

32

CHANGELOG.md

@@ -151,3 +151,3 @@ ## Changelog

### [v2.1.0] - [2024-02-17]
### [v2.1.0]

@@ -191,3 +191,29 @@ #### Added

### [v2.2.0] - [2024-02-17]
#### Added
- **Simplification:** README.md documentation of diff-ymd-package
- Updated corrected github registry description in README.md documentation
- Updated the README.md documentation for better presentation.
- Enhanced README.md for follwing best practices
#### Changed
- Corrected github registry description of README.md documentation
- Enhanced README.md for follwing best practices
#### Fixed
- Fixed some issues related to the new changes.
- Configured files for publishing diff-ymd-package v2.2.0 on npm registry.
#### Documentation
- README.md updated: Added correction and consistent formating and recommended for best practices.
#### Testing
- Continuous Integration: Integrated automated testing with GitHub Actions for ongoing code quality assurance.
### [Next Release] - Collecting issues and new features for next release

@@ -197,4 +223,4 @@

- [Unreleased](https://github.com/farhan7reza7/diff-ymd-package/compare/v2.1.1...HEAD)
- [v2.1.1](https://github.com/farhan7reza7/diff-ymd-package/releases/tag/v2.1.1)
- [Unreleased](https://github.com/farhan7reza7/diff-ymd-package/compare/v2.2.0...HEAD)
- [v2.2.0](https://github.com/farhan7reza7/diff-ymd-package/releases/tag/v2.2.0)
- [Next Release](https://github.com/farhan7reza7/diff-ymd-package/milestone/2)

2

package.json
{
"name": "diff-ymd-package",
"version": "2.1.1",
"version": "2.2.0",
"description": "A javascript library for calculating the difference between two dates in formatted ways like (aY bM cD)(aYears bMonths cDays) or customized desired formats like aY-bM-cD or aYears-bMonths-cDays or kDays or mWeeks or nMonths etc.",

@@ -5,0 +5,0 @@ "main": "src/index.js",

@@ -15,4 +15,4 @@ # diff-ymd-package

- [Installation](#installation)
- [Install from npm registry](#install-from-npm-registry)
- [Install from Github Packages registry](#install-from-github-packages-registry)
- [Install from npm registry](#install-from-npm-registrypreference)
- [Install from Github Packages registry](#install-from-github-packages-registryrequire-authentication)
- [Usages](#usages)

@@ -28,3 +28,3 @@ - [API References](#api-references)

### Install from `npm registry`
### Install from `npm registry`(Preference)

@@ -36,3 +36,3 @@ ```bash

### Install from `Github Packages registry`
### Install from `Github Packages registry`(require authentication)

@@ -44,2 +44,5 @@ ```bash

##### Steps to install from `Github Packages registry`:
[See steps here](https://github.com/farhan7reza7/diff-ymd-package/wiki/Github-Packages-registry-Steps)
## Usages

@@ -52,3 +55,4 @@

const DatesYMD = require('diff-ymd-package'); // can use any
const DatesYMD = require('diff-ymd-package'); // can use any if authenticated
```

@@ -161,14 +165,14 @@

- [OR for version 2.x.x and above, Can use simplified function diffDates on module-object](#can-use-simplified-function-diffdates-on-module-object)
- [Methods](#methods)
- [diffArray()](#diffarray)
- [formattedYMD()](#formattedymd)
- [customizeFormat(yearUnit, monthUnit, dayUnit, partSeparator)](#customizeformatyearunit-monthunit-dayunit-partseparator)
- [diffInMonths()](#diffinmonths)
- [diffInWeeks()](#diffinweeks)
- [diffInDays()](#diffindays)
- [diffInYears()](#diffinyears)
- [diffInHours()](#diffinhours)
- [diffInMinutes()](#diffinminutes)
- [diffInSeconds()](#diffinseconds)
- [Methods](#methods)
- [diffArray()](#diffarray)
- [formattedYMD()](#formattedymd)
- [customizeFormat(yearUnit, monthUnit, dayUnit, partSeparator)](#customizeformatyearunit-monthunit-dayunit-partseparator)
- [diffInMonths()](#diffinmonths)
- [diffInWeeks()](#diffinweeks)
- [diffInDays()](#diffindays)
- [diffInYears()](#diffinyears)
- [diffInHours()](#diffinhours)
- [diffInMinutes()](#diffinminutes)
- [diffInSeconds()](#diffinseconds)
## API Documentation

@@ -332,3 +336,3 @@

[See CONTRIBUTING.md](CONTRIBUTING.md) for more informations.
[See CONTRIBUTING guidelines](CONTRIBUTING.md) for more information.

@@ -343,2 +347,4 @@ ## Best Practices:

[See mdn guidelines](https://developer.mozilla.org/en-US/docs/MDN/Writing_guidelines/Writing_style_guide/Code_style_guide/JavaScript) for more information.
## License

@@ -354,3 +360,3 @@

[See CHANGELOG.md](CHANGELOG.md).
[See CHANGELOG](CHANGELOG.md)

@@ -357,0 +363,0 @@ [npm-image]: https://img.shields.io/npm/v/diff-ymd-package

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc