New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

react-year

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-year

A react-component to format and display a year.

latest
Source
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

React <Year>

A react-component to format and display a year.

Getting Started

  • Install with NPM - npm install --save react-year

Usage

var React = require('react');
var Year  = require('react-year');

var Component = React.createClass({
  render: function () {
    return (
      <Year format="numeric" date="13/06/1982"></Year>
    );
  }
});

Options

PropertyTypeArgumentValuesDefaultDescription
datestring<optional>RFC2822/ISO8601todayRFC2822/ISO8601 format.
formatstring<optional>numeric, 2-digitnumericrepresentation format.

Developing

react-year is built using ES6. Run the following task to compile the src/ into dist/.

npm run build

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality.

License

Copyright (c) 2015 Jason Bellamy
Licensed under the MIT license.

Keywords

react

FAQs

Package last updated on 20 Aug 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts