2023-10-03 11:14:36 +08:00
|
|
|
# [Moment.js](http://momentjs.com/)
|
|
|
|
|
|
|
|
[![NPM version][npm-version-image]][npm-url]
|
|
|
|
[![NPM downloads][npm-downloads-image]][npm-downloads-url]
|
|
|
|
[![MIT License][license-image]][license-url]
|
|
|
|
[![Build Status][travis-image]][travis-url]
|
|
|
|
[![Coverage Status][coveralls-image]][coveralls-url]
|
|
|
|
[![FOSSA Status][fossa-badge-image]][fossa-badge-url]
|
|
|
|
[![SemVer compatibility][semver-image]][semver-url]
|
|
|
|
|
|
|
|
A JavaScript date library for parsing, validating, manipulating, and formatting dates.
|
|
|
|
|
|
|
|
## Project Status
|
|
|
|
|
|
|
|
Moment.js is a legacy project, now in maintenance mode. In most cases, you should choose a different library.
|
|
|
|
|
|
|
|
For more details and recommendations, please see [Project Status](https://momentjs.com/docs/#/-project-status/) in the docs.
|
|
|
|
|
|
|
|
*Thank you.*
|
|
|
|
|
|
|
|
## Resources
|
|
|
|
|
|
|
|
- [Documentation](https://momentjs.com/docs/)
|
|
|
|
- [Changelog](CHANGELOG.md)
|
|
|
|
- [Stack Overflow](https://stackoverflow.com/questions/tagged/momentjs)
|
|
|
|
|
|
|
|
## License
|
|
|
|
|
|
|
|
Moment.js is freely distributable under the terms of the [MIT license][license-url].
|
|
|
|
|
|
|
|
[![FOSSA Status][fossa-large-image]][fossa-large-url]
|
|
|
|
|
|
|
|
[license-image]: https://img.shields.io/badge/license-MIT-blue.svg?style=flat
|
|
|
|
[license-url]: LICENSE
|
|
|
|
|
|
|
|
[npm-url]: https://npmjs.org/package/moment
|
|
|
|
[npm-version-image]: https://img.shields.io/npm/v/moment.svg?style=flat
|
|
|
|
|
|
|
|
[npm-downloads-image]: https://img.shields.io/npm/dm/moment.svg?style=flat
|
|
|
|
[npm-downloads-url]: https://npmcharts.com/compare/moment?minimal=true
|
|
|
|
|
|
|
|
[travis-url]: https://travis-ci.org/moment/moment
|
|
|
|
[travis-image]: https://img.shields.io/travis/moment/moment/develop.svg?style=flat
|
|
|
|
|
|
|
|
[coveralls-image]: https://coveralls.io/repos/moment/moment/badge.svg?branch=develop
|
|
|
|
[coveralls-url]: https://coveralls.io/r/moment/moment?branch=develop
|
|
|
|
|
|
|
|
[fossa-badge-image]: https://app.fossa.io/api/projects/git%2Bhttps%3A%2F%2Fgithub.com%2Fmoment%2Fmoment.svg?type=shield
|
|
|
|
[fossa-badge-url]: https://app.fossa.io/projects/git%2Bhttps%3A%2F%2Fgithub.com%2Fmoment%2Fmoment?ref=badge_shield
|
|
|
|
|
|
|
|
[fossa-large-image]: https://app.fossa.io/api/projects/git%2Bhttps%3A%2F%2Fgithub.com%2Fmoment%2Fmoment.svg?type=large
|
|
|
|
[fossa-large-url]: https://app.fossa.io/projects/git%2Bhttps%3A%2F%2Fgithub.com%2Fmoment%2Fmoment?ref=badge_large
|
|
|
|
|
|
|
|
[semver-image]: https://api.dependabot.com/badges/compatibility_score?dependency-name=moment&package-manager=npm_and_yarn&version-scheme=semver
|
|
|
|
[semver-url]: https://dependabot.com/compatibility-score.html?dependency-name=moment&package-manager=npm_and_yarn&version-scheme=semver
|