@times-components/date-publication

0.30.14 • Public • Published

Date Publication

This package takes a required date as a string, and converts it into a formatted component. A consumer may pass in an optional publication string to display alongside the date, and this must have a value of either SUNDAYTIMES or TIMES.

Contributing

Please read CONTRIBUTING.md before contributing to this package

Running the code

Please see our main README.md to get the project running locally

Development

The code can be formatted and linted in accordance with the agreed standards.

yarn fmt
yarn lint

Testing

This package uses yarn (latest) to run unit tests on each platform with jest.

yarn test:web

Visit the official storybook to see our available date publication templates.

Package Sidebar

Install

npm i @times-components/date-publication

Weekly Downloads

6,612

Version

0.30.14

License

BSD-3-Clause

Unpacked Size

166 kB

Total Files

12

Last publish

Collaborators

  • marcincuber
  • newsuk
  • news-tools