0.0.3 • Published 2 years ago

str2avatar v0.0.3

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago
npm install str2avatar

Online Demo

<template>
  <input type="text" v-model="nickname">
  <img :src="avatr" alt="">
</template>
import { ref, computed } from 'vue';
import str2avatar from 'str2avatar'

const nickname = ref('')
const avatr = computed(() => str2avatar(nickname.value))

str2avatar params is object or string; the struct is below while params is object

  • nickname
  • size
  • color
  • nickname is required
  • size and color is optional
0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago