https://github.com/jlengrand/fuzzy-date
A simple web-component that displays dates in a way understood by humans
https://github.com/jlengrand/fuzzy-date
date momentjs polymer polymer-cli time web-components
Last synced: about 1 year ago
JSON representation
A simple web-component that displays dates in a way understood by humans
- Host: GitHub
- URL: https://github.com/jlengrand/fuzzy-date
- Owner: jlengrand
- Created: 2018-03-13T21:19:37.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-04-19T11:28:29.000Z (about 8 years ago)
- Last Synced: 2025-04-01T10:54:29.014Z (about 1 year ago)
- Topics: date, momentjs, polymer, polymer-cli, time, web-components
- Language: HTML
- Size: 228 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# \
[](https://www.webcomponents.org/element/jlengrand/fuzzy-date)[](https://travis-ci.org/jlengrand/fuzzy-date)
A simple element that shows dates in a format understood by humans
## Demo
```html
```
## Usage
To use, simply add the `fuzzy-date` dependency to your project and add a ``element with a date attribute in the format given my javascript's `Date().toString()`;
## Install the Polymer-CLI
First, make sure you have the [Polymer CLI](https://www.npmjs.com/package/polymer-cli) installed. Then run `polymer serve` to serve your element locally.
## Viewing Your Element
```
$ polymer serve
```
## Running Tests
```
$ polymer test
```
Your application is already set up to be tested via [web-component-tester](https://github.com/Polymer/web-component-tester). Run `polymer test` to run your application's test suite locally.
## License
This software is licensed under the Apache 2 license, quoted below.
Copyright 2018 Julien Lengrand-Lambert
Licensed under the Apache License, Version 2.0 (the "License"); you may not
use this file except in compliance with the License. You may obtain a copy of
the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
License for the specific language governing permissions and limitations under
the License.