Join our webinar on Wednesday, June 26, at 1pm EDTHow Chia Mitigates Risk in the Crypto Industry.Register
Socket
Socket
Sign inDemoInstall

@dicebear/open-peeps

Package Overview
Dependencies
2
Maintainers
1
Versions
128
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @dicebear/open-peeps

Avatar style for DiceBear


Version published
Weekly downloads
9.5K
decreased by-7.66%
Maintainers
1
Install size
280 kB
Created
Weekly downloads
 

Changelog

Source

9.0.0

This release fixes a compatibility issue with Next.js caused by the converter that can convert generated SVG avatars to PNG and JPEG. As of this version, the converter is no longer part of the core library and must be installed separately.

Breaking changes

  • toDataUri is now synchronous and toDataUriSync has been removed accordingly.

  • toPng and toJpeg have been removed. These functions can still be used if the @dicebear/converter library is installed, which provides these two methods.

    Before:

    import { createAvatar } from '@dicebear/core';
    import { bottts } from '@dicebear/collection';
    
    const avatar = createAvatar(bottts);
    const png = await avatar.toPng();
    

    After:

    import { createAvatar } from '@dicebear/core';
    import { bottts } from '@dicebear/collection';
    import { toPng } from '@dicebear/converter';
    
    const avatar = createAvatar(bottts);
    const png = await toPng(avatar);
    

    See Documentation for more information.

  • toFile has been removed as the behaviour of the function cannot be kept consistent across the environments. Such a method must be implemented yourself.

  • toArrayBuffer for SVG format has been removed.

New features

  • toPng and toJpeg now support fonts as an option to set custom fonts. See Documentation for more information.

Readme

Source


DiceBear Open Peeps

Avatar Style for DiceBear
Open Peeps by Pablo Stanley

The avatar style is based on Open Peeps by Pablo Stanley, licensed under CC0 1.0. / Remix of the original.

See license overview for more information.

Read Documentation

Keywords

FAQs

Last updated on 15 Jun 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc