@birbjs/snowflake
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

huntr

NPM

@birbjs/snowflake

This package allows for easy generation and interpretation of Discord snowflakes. It is mainly used for the birb package. You should already have this package installed if you are using Birb.JS.

Installation

This package is bundled with Birb.JS. You should install Birb.JS using npm install birb --save.

Usage

// Generate a snowflake from a user ID ...
const { Snowflake } = require('@birbjs/snowflake');
const snowflake = new Snowflake('914338137600294982');

Readme

Keywords

none

Package Sidebar

Install

npm i @birbjs/snowflake

Weekly Downloads

2

Version

1.0.1

License

MPL-2.0

Unpacked Size

36.8 kB

Total Files

6

Last publish

Collaborators

  • knokbak