An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# \

[![Published on webcomponents.org](https://img.shields.io/badge/webcomponents.org-published-blue.svg)](https://www.webcomponents.org/element/jlengrand/fuzzy-date)[![Travis state](https://travis-ci.org/jlengrand/fuzzy-date.svg?branch=master)](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.