Socket
Socket
Sign inDemoInstall

diff-ymd-package

Package Overview
Dependencies
Maintainers
1
Versions
25
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 1.1.0 to 1.1.1

10

CHANGELOG.md

@@ -73,2 +73,8 @@ ## Changelog

### [v1.1.1]
#### Fixed
fixed some issues and configured files for v1.0.1
### [Next Release] - Planning release time

@@ -78,4 +84,4 @@

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

2

package.json
{
"name": "diff-ymd-package",
"version": "1.1.0",
"version": "1.1.1",
"description": "Utility class for calculating the difference between two dates in formatted ways like (aY bM cD)(aYears bMonths cDays) or customized formats like aY-bM-cD or aYears-bMonths-cDays etc.",

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

@@ -55,10 +55,10 @@ # diff-ymd-package

const customFormat = Y + 'years ' + M + 'months ' + D + 'days';
console.log(customFormat); // output: 1years 11months 30days
const customFormat = Y + 'year ' + M + 'months ' + D + 'days';
console.log(customFormat); // output: 1year 11months 30days
*/
// you can use this method for creating format of your choice
const customizedFormat = Formatter.customizeFormat('Ys', 'Ms', 'Ds', '-');
const customizedFormat = Formatter.customizeFormat('Y', 'Ms', 'Ds', '-');
console.log(customizedFormat); // Output: "1Ys-2Ms-2Ds"
console.log(customizedFormat); // Output: "1Y-11Ms-30Ds"
```

@@ -65,0 +65,0 @@

Sorry, the diff of this file is not supported yet

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