react-copyright-notice-component

0.1.1 • Public • Published

React Component for Copyright Notice (<CopyrightNotice />)

codecov Coverage Status Known Vulnerabilities dependencies Status npm version GitHub license

Use this component to put a semantic copyright notice on a page with React.

Getting started

Installation

npm install react-copyright-notice-component --save
# or 
yarn add react-copyright-notice-component

Usage

For a minimal/generic copyright notice, assuming the current year:

<CopyrightNotice></CopyrightNotice>
<span class="copyright-notice"
  >&copy;
  <span property="dc:date" datatype="xsd:gYear">2019</span>
</span>

Give it more to work with by specifying a copyright holder:

<CopyrightNotice copyrightHolder="Michael Bluth"></CopyrightNotice>
<span class="copyright-notice"
  ><span>&copy;</span>
  <span property="dc:date" datatype="xsd:gYear">2019</span>
  <span>Michael Bluth</span></span
>

...and/or specify the year:

<CopyrightNotice copyrightHolder="Michael Bluth" year="2003"></CopyrightNotice>
<span class="copyright-notice"
  ><span>&copy;</span>
  <span property="dc:date" datatype="xsd:gYear">2003</span>
  <span>Michael Bluth</span></span
>

Running the tests

npm test
# or, for a coverage report: 
npm run test:coverage

License

This project is licensed under the MIT License. See the LICENSE file for details.

Package Sidebar

Install

npm i react-copyright-notice-component

Weekly Downloads

0

Version

0.1.1

License

MIT

Unpacked Size

35.4 kB

Total Files

23

Last publish

Collaborators

  • mooniker