This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

date-prop-types

1.0.3 • Public • Published

date-prop-types Build Status

A validator that you can use to verify that the formatted date that your React component receives has the specified format.

Installation

npm install date-prop-types --save-dev

Usage

import date from 'date-prop-types';
 
MyComponent.propTypes = {
  hiringDate: date('YYYY-DD-MM').isRequired,
  dateOfDismissal: date('YYYY-DD-MM')
};

License

This project is licensed under the MIT License

/date-prop-types/

    Package Sidebar

    Install

    npm i date-prop-types

    Weekly Downloads

    8

    Version

    1.0.3

    License

    MIT

    Unpacked Size

    6.21 kB

    Total Files

    10

    Last publish

    Collaborators

    • const_y