discord-snowflake-id is a library for parsing Discord snowflake IDs and with zero dependencies
Install this package using the following command in your terminal:
npm i discord-snowflake-id
Import this package like this:
import Snowflake from "discord-snowflake-id"
...or using CommonJS require function:
const Snowflake = require("discord-snowflake-id")