Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/celtian/fifadate
Utils for Fifa Soccer Game dates
https://github.com/celtian/fifadate
library typescript
Last synced: about 10 hours ago
JSON representation
Utils for Fifa Soccer Game dates
- Host: GitHub
- URL: https://github.com/celtian/fifadate
- Owner: Celtian
- License: mit
- Created: 2023-07-06T10:20:38.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-06-02T17:37:22.000Z (6 months ago)
- Last Synced: 2024-08-08T21:50:29.934Z (3 months ago)
- Topics: library, typescript
- Language: JavaScript
- Homepage:
- Size: 420 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
README
fifadate
[![npm version](https://badge.fury.io/js/fifadate.svg)](https://badge.fury.io/js/fifadate)
[![Package License](https://img.shields.io/npm/l/fifadate.svg)](https://www.npmjs.com/fifadate)
[![NPM Downloads](https://img.shields.io/npm/dm/fifadate.svg)](https://www.npmjs.com/fifadate)
[![Build & Publish](https://github.com/celtian/fifadate/workflows/Build%20&%20Publish/badge.svg)](https://github.com/celtian/fifadate/actions)
[![codecov](https://codecov.io/gh/Celtian/fifatables/branch/master/graph/badge.svg?token=1IRUKIKM0D)](https://codecov.io/gh/celtian/fifadate/)
[![stars](https://badgen.net/github/stars/celtian/fifadate)](https://github.com/celtian/fifadate/)
[![forks](https://badgen.net/github/forks/celtian/fifadate)](https://github.com/celtian/fifadate/)
[![HitCount](http://hits.dwyl.com/celtian/fifadate.svg)](http://hits.dwyl.com/celtian/fifadate)> Utils for Fifa Soccer Game dates
## 🛠️ Install
_Nodejs 12 or higher need to be installed first_
```terminal
npm install fifadate
```or
```terminal
yarn add fifadate
```## 🚀 Quick start
_Type this into your ts file._
```typescript
import 'fifadate'; // for es5// or for es6
import { registerFifaDatePrototype } from 'fifadate';registerFifaDatePrototype();
// usage
console.log(new Date('1970-01-01').toFifaDate()); // 141428
console.log(new Date('1970-01-01').addYear(1));
console.log(new Date('1970-01-01').age());
console.log(new Date('1970-01-01T03:00:00.000Z').normalize());
console.log(Date.fromFifaDate(141428)); // 1970-01-01
```## 🪪 License
Copyright © 2023 - 2024 [Dominik Hladik](https://github.com/Celtian)
All contents are licensed under the [MIT license].
[mit license]: LICENSE