0.1.5 • Published 2 years ago

lifehash-vue v0.1.5

Weekly downloads
-
License
-
Repository
github
Last release
2 years ago

0

lifehash-vue

Wrapper component for the WASM LifeHash implementation powered identicons in Vue.js

Installation

npm i lifehash-vue --save

Usage

The default export is a Vue component that can be used in a Vue template.

<template>
  <div>
    <LifeHash input="Hello, world!" />
  </div>
</template>

<script setup>
import LifeHash from 'lifehash-vue';
</script>

See a working live example on codesandbox.

Props

Following props are available:

NameTypeDescription
inputStringThe input string to hash
versionNumberThe version of LifeHash to use (Default: 1)

Global registration (in main.js)

import { createApp } from 'vue'
import App from './App.vue'
import LifeHash from 'lifehash-vue';

createApp(App)
    .component('LifeHash', LifeHash)
    .mount('#app')

Fiducial version

optimized for recognition by machine vision algorithms

<LifeHash input="Hello, world!" version="3" />

Example results

VersionDescriptionSamples
0Version 10
1Version 21
2Version 2 - Detailed2
3Fiducial3
4Fiducial - Monochrome4
0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago