Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/iwatakeshi/tokei
Date, time, and number localization for node.js
https://github.com/iwatakeshi/tokei
Last synced: 6 days ago
JSON representation
Date, time, and number localization for node.js
- Host: GitHub
- URL: https://github.com/iwatakeshi/tokei
- Owner: iwatakeshi
- License: mit
- Created: 2015-03-05T14:57:38.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2018-11-03T16:23:27.000Z (about 6 years ago)
- Last Synced: 2024-12-15T23:21:48.399Z (23 days ago)
- Language: JavaScript
- Homepage: https://iwatakeshi.github.io/tokei
- Size: 97.7 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Tokei
Date, time, and number localization for node.js
[![Dependency Status](https://david-dm.org/iwatakeshi/tokei.svg)](https://david-dm.org/iwatakeshi/tokei) [![License Status](http://img.shields.io/npm/l/tokei.svg)](https://github.com/iwatakeshi/tokei/blob/master/LICENSE) [![Downloads](http://img.shields.io/npm/dm/tokei.svg)](https://www.npmjs.com/package/tokei) [![Version](http://img.shields.io/npm/v/tokei.svg)](https://www.npmjs.com/package/tokei)
[![Build Status](https://travis-ci.org/iwatakeshi/tokei.svg?branch=master)](https://travis-ci.org/iwatakeshi/tokei)Tokei is a localization library that combines and wraps **Intl.DateTimeFormat**, **Intl.NumberFormat**, and **Moment.js** (including **Moment.js Timezone**) with a very simple API.
## Documentation
See [documentation](http://iwatakeshi.github.io/tokei/).
## Usage
```bash
# Install
npm install --save tokei
``````javascript
var tokei = require('tokei');tokei(locale).date().now();
```## Contribution
I would gladly accept any contribution! Just use gulp to lint and beautify your code.
## Known Issues
Formatting Japanese and Chinese are incorrect so I recommend you to use moment.