npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

stz_random_avator

v1.0.1

Published

获取随机头像

Downloads

4

Readme

面试题

使用过ts发过包吗

知道什么是发包嘛

有没有过自己维护的开源项目

有自己写过cli嘛

了解node嘛

  1. 初始化项目

    npm init -y

    tsc init

  2. 配置出口文件 tsconfig.json/outDir : dist

  3. package.json entry:'dist/index.js'

  4. npm login

  5. npm publish

后台项目 用户 自动生成头像

https://avataaars.io/
?accessoriesType=Prescription01
&avatarStyle=Circle
&clotheColor=Pink
&clotheType=Overall
&eyeType=Close
&eyebrowType=AngryNatural
&facialHairColor=Blonde
&facialHairType=MoustacheFancy
&hairColor=Blonde
&hatColor=Blue02
&mouthType=Twinkle
&skinColor=Black
&topType=ShortHairShortFlat 

头部

 'NoHair',
 'Eyepatch',
 'Hat',
 'Hijab',
 'Turban',
 'WinterHat1',
 'WinterHat2',
 'WinterHat3',
 'WinterHat4',
 'LongHairBigHair',
 'LongHairBob',
 'LongHairBun',
 'LongHairCurly',
 'LongHairCurvy',
 'LongHairDreads',
 'LongHairFrida',
 'LongHairFro',
 'LongHairFroBand',
 'LongHairNotTooLong',
 'LongHairShavedSides',
 'LongHairMiaWallace',
 'LongHairStraight',
 'LongHairStraight2',
 'LongHairStraightStrand',
 'ShortHairDreads01',
 'ShortHairDreads02',
 'ShortHairFrizzle',
 'ShortHairShaggyMullet',
 'ShortHairShortCurly',
 'ShortHairShortFlat',
 'ShortHairShortRound',
 'ShortHairShortWaved',
 'ShortHairSides',
 'ShortHairTheCaesar',
 'ShortHairTheCaesarSidePart'

配件

'Blank',
'Kurt',
'Prescription01',
'Prescription02',
'Round',
'Sunglasses',
'Wayfarers'

发型

'Blank',
'BeardMedium',
'BeardLight',
'BeardMagestic',
'MoustacheFancy',
'MoustacheMagnum'

颜色

'Auburn',
'Black',
'Blonde',
'BlondeGolden',
'Brown',
'BrownDark',
'Platinum',
'Red'

衣服类型

'BlazerShirt',
'BlazerSweater',
'CollarSweater',
'GraphicShirt',
'Hoodie',
'Overall',
'ShirtCrewNeck',
'ShirtScoopNeck',
'ShirtVNeck'

眼睛类型

'Close',
'Cry',
'Default',
'Dizzy',
'EyeRoll',
'Happy',
'Hearts',
'Side',
'Squint',
'Surprised',
'Wink',
'WinkWacky'

表情

'Angry',
'AngryNatural',
'Default',
'DefaultNatural',
'FlatNatural',
'RaisedExcited',
'RaisedExcitedNatural',
'SadConcerned',
'SadConcernedNatural',
'UnibrowNatural',
'UpDown',
'UpDownNatural'

嘴巴

'Concerned',
'Default',
'Disbelief',
'Eating',
'Grimace',
'Sad',
'ScreamOpen',
'Serious',
'Smile',
'Tongue',
'Twinkle',
'Vomit'

皮肤颜色

'Tanned', 'Yellow', 'Pale', 'Light', 'Brown', 'DarkBrown', 'Black'

头发颜色

'Auburn',
'Black',
'Blonde',
'BlondeGolden',
'Brown',
'BrownDark',
'PastelPink',
'Platinum',
'Red',
'SilverGray'

帽子颜色

'Black',
'Blue01',
'Blue02',
'Blue03',
'Gray01',
'Gray02',
'Heather',
'PastelBlue',
'PastelGreen',
'PastelOrange',
'PastelRed',
'PastelYellow',
'Pink',
'Red',
'White'

衣服颜色

'Black',
'Blue01',
'Blue02',
'Blue03',
'Gray01',
'Gray02',
'Heather',
'PastelBlue',
'PastelGreen',
'PastelOrange',
'PastelRed',
'PastelYellow',
'Pink',
'Red',
'White'