@anomalyhq/use-doko
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

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.

/@anomalyhq/use-doko/

    Package Sidebar

    Install

    npm i @anomalyhq/use-doko

    Weekly Downloads

    11

    Version

    0.1.0

    License

    Apache-2.0

    Unpacked Size

    33.3 kB

    Total Files

    17

    Last publish

    Collaborators

    • mdevraj