@heimdallr-sdk/hash
TypeScript icon, indicating that this package has built-in type declarations

0.0.17 • Public • Published

@heimdallr-sdk/hash

Capture the hash changes in the route, record from and to and report

Usage

cdn

<script src="[hash-dist]/hash.iife.js"></script>
<script>
    window.__HEIMDALLR_OPTIONS__ = {
        dsn: {
            host: 'localhost:8888',
            init: '/project/init',
            upload: '/log/upload'
        },
        app: {
            name: 'playgroundAPP',
            leader: 'test',
            desc: 'test proj'
        },
        plugins: [
            HEIMDALLR_HASH(),
        ]
    };
</script>
<script async src="/browser-dist/browser.iife.js"></script>

npm

import heimdallr from "@heimdallr-sdk/browser";
import hashPlugin from "@heimdallr-sdk/hash";
heimdallr({
    dsn: {
        host: 'localhost:8888',
        init: '/project/init',
        upload: '/log/upload'
    },
    app: {
        name: 'playgroundAPP',
        leader: 'test',
        desc: 'test proj'
    },
    plugins: [
        hashPlugin(),
    ]
});

Package Sidebar

Install

npm i @heimdallr-sdk/hash

Weekly Downloads

3

Version

0.0.17

License

MIT

Unpacked Size

16.6 kB

Total Files

7

Last publish

Collaborators

  • h_lianfa