Skip to content
This repository has been archived by the owner on Jun 11, 2023. It is now read-only.
/ use-doko Public archive

A react hook to add the Doko meta tags to the document head.

License

Notifications You must be signed in to change notification settings

anomaly/use-doko

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Doko usage example

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.

About

A react hook to add the Doko meta tags to the document head.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published