Gathering detailed insights and metrics for extended-bigheads
Gathering detailed insights and metrics for extended-bigheads
Create charming Big Head avatars effortlessly with this component. Perfect for adding personality to user profiles, chatbots, and apps. Easy integration for eye-catching results.
npm install extended-bigheads
Typescript
Module System
Min. Node Version
Node Version
NPM Version
71.9
Supply Chain
98.8
Quality
75.6
Maintenance
100
Vulnerability
100
License
TypeScript (99.39%)
JavaScript (0.61%)
Total Downloads
2,143
Last Day
1
Last Week
19
Last Month
36
Last Year
1,454
59 Commits
1 Watching
1 Branches
1 Contributors
Minified
Minified + Gzipped
Latest Version
0.0.9
Package Id
extended-bigheads@0.0.9
Unpacked Size
2.66 MB
Size
649.89 kB
File Count
192
NPM Version
9.6.3
Node Version
18.15.0
Publised On
23 Sept 2023
Cumulative downloads
Total Downloads
Last day
0%
1
Compared to previous day
Last week
0%
19
Compared to previous week
Last month
20%
36
Compared to previous month
Last year
111%
1,454
Compared to previous year
1
8
Did you ever want to create a Big Head version of your self? Or do you want to offer users an easy creation of avatars for your application? Here you go! 🚀
This projects extends the Original Big Heads implementation with features of the React Native Big Heads implementation and the Vue Big Heads implementation, giving it a rich set of options to style your Big Head Avatar.
npm i extended-bigheads
1import { BigHead } from "extended-bigheads"; 2// or 3const { BigHead } = require("extended-bigheads");
then, in your app:
1import { BigHead } from "extended-bigheads"; 2// or const { BigHead } = require("extended-bigheads"); 3 4const Example = () => ( 5 <BigHead 6 showBackground={true} 7 backgroundColor="blue" 8 backgroundShape="square" 9 accessory="shades" 10 body="chest" 11 clothing="tankTop" 12 clothingColor="red" 13 eyebrows="angry" 14 eyes="wink" 15 facialHair="mediumBeard" 16 facialHairColor="blonde" 17 graphic="vue" 18 hair="short" 19 hairColor="black" 20 hat="none" 21 hatColor="green" 22 lashes={false} 23 lipColor="purple" 24 mouth="open" 25 skinTone="brown" 26 faceMask={true} 27 faceMaskColor="blue" 28 /> 29);
To retrieve an object with all options possible, use
1import { bigHeadOptions } from "extended-bigheads"; 2// or 3const { bigHeadOptions } = require("extended-bigheads");
bigHeadOptions will look like this:
1{ 2 accessory: ['none', 'roundGlasses', 'tinyGlasses', ...], 3 backgroundColor: ['red', 'orange', 'yellow', ...], 4 backgroundShape: ['circle', 'square', 'squircle'], 5 ... 6}
Leaving a prop empty will result in a random value being chosen.
Property | Possible values |
---|---|
showBackground | true , false |
backgroundColor | 'red' , 'orange' , 'yellow' , 'green' , 'turqoise' , 'blue' , 'pink' , 'purple' |
backgroundShape | 'none' , 'circle' , 'square' , 'squircle' |
accessory | 'none' , 'faceMask' , 'hoopEarrings' , 'roundGlasses' , 'shades' , 'tinyGlasses' |
body | 'chest' , 'breasts' |
clothing | 'naked' , 'chequeredShirt' , 'chequeredShirtDark' , 'shirt' , 'denimJacket' , 'dressShirt' , 'hoodie' , 'vneck' , 'tankTop' , 'dress' |
clothingColor | 'white' , 'gray' , 'black' , 'red' , 'lightRed' , 'orange' , 'lightOrange' , 'yellow' , 'lightYellow' , 'green' , 'lightGreen' , 'turqoise' , 'lightTurqoise' , 'blue' , 'lightBlue' , 'pink' , 'lightPink' , 'purple' , 'lighPurple' |
eyebrows | 'none' , 'angry' , 'concerned' , 'leftLowered' , 'raised' , 'serious' |
eyes | 'normal' , 'content' , 'crazy' , 'cute' , 'cyborg' , 'dizzy' , 'dollars' , 'eyePatch' , 'eyePatch2' , 'happy' , 'hearts' , 'leftTwitch' , 'squint' , 'simple' , 'stars' , 'wink' |
facialHair | 'none' , 'goatee' , 'mediumBeard' , 'stubble' |
facialHairColor | 'white' , 'silver' , 'blonde' , 'brown' , 'black' , 'red' , 'lightRed' , 'orange' , 'lightOrange' , 'green' , 'lightGreen' , 'turqoise' , 'lightTurqoise' , 'blue' , 'lightBlue' , 'pink' , 'lightPink' , 'purple' , 'lighPurple' |
graphic | 'none' , 'donut' , 'gatsby' , 'graphQL' , 'rainbow' , 'react' , 'redwood' , 'vue' |
hair | 'none' , 'afro' , 'balding' , 'bob' , 'bun' , 'buzz' , 'long' , 'mohawk' , 'pixie' , 'short' |
hairColor | 'white' , 'silver' , 'blonde' , 'brown' , 'black' , 'red' , 'lightRed' , 'orange' , 'lightOrange' , 'green' , 'lightGreen' , 'turqoise' , 'lightTurqoise' , 'blue' , 'lightBlue' , 'pink' , 'lightPink' , 'purple' , 'lighPurple' |
hat | 'none ', 'beanie' , 'hijab' , 'partyHat' , 'turban' |
hatColor | 'white' , 'gray' , 'black' , 'red' , 'lightRed' , 'orange' , 'lightOrange' , 'yellow' , 'lightYellow' , 'green' , 'lightGreen' , 'turqoise' , 'lightTurqoise' , 'blue' , 'lightBlue' , 'pink' , 'lightPink' , 'purple' , 'lighPurple' |
lashes | true , false |
lipColor | 'red' , 'lightRed' , 'green' , 'lightGreen' , 'turqoise' , 'lightTurqoise' , 'blue' , 'lightBlue' , 'pink' , 'lightPink' , 'purple' , 'lightPurple' |
mouth | 'grin' , 'lips' , 'open' , 'openSmile' , 'piercedTongue' , 'sad' , 'serious' , 'tongue' , 'vomitingRainbow' |
skinTone | 'light' , 'yellow' , 'brown' , 'dark' , 'red' , 'black' |
faceMask | true , false |
faceMaskColor | 'white' , 'gray' , 'black' , 'red' , 'lightRed' , 'orange' , 'lightOrange' , 'yellow' , 'lightYellow' , 'green' , 'lightGreen' , 'turqoise' , 'lightTurqoise' , 'blue' , 'lightBlue' , 'pink' , 'lightPink' , 'purple' , 'lighPurple' |
This project is licensed under the MIT License - see the LICENSE file for details
No vulnerabilities found.
No security vulnerabilities found.