0.1.0 • Published 3 years ago

@anomalyhq/use-doko v0.1.0

Weekly downloads
8
License
Apache-2.0
Repository
github
Last release
3 years ago

useDoko

The React hook for adding Doko meta tags.

Version Downloads/week License

Doko provides a meta tag based standard for web applications to express useful information about the environment. This assists developers and testers to ensure they are accessing the right environment without having to make visual changes to the user interfaces.

In addition we provide browser plugins to overlay this information over a web interface.

This repository contains the source to a React hook that makes it easy to add the Doko meta tags to the document <head>.

Head to the main repository for information on the protocol, browser plugins and our roadmap.

Installation

This package is distributed via npm.

You can install with npm

npm install --save @anomalyhq/use-doko

or with yarn

yarn add @anomalyhq/use-doko

Usage

import useDoko from '@anomalyhq/use-doko';

const App = () => {

  useDoko({
    env: 'production',
    title: 'useDoko',
    subtitle: 'A hook to provide Doko meta tags',
    facts: [
      {
        key: 'Host',
        value: 'Github'
      }
    ],
    report: 'http://github.com/anomaly/use-doko/issues/new'
  })

  return(
    ...
  )
}
export default App;

License

Distributed under the Apache 2.0 License. See LICENSE for further information.