New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

ati.js

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ati.js

Random project.

latest
Source
npmnpm
Version
1.5.9
Version published
Maintainers
1
Created
Source

Āti

Sort of a random project I started

NPM

Visual Studio Code

ESLint

JavaScript

GitLab

Usage

Install first! npm i ati.js

Discord Snowflake

const ati = require('ati.js'); // Require the package

console.log(ati.discordSnowflake()); // Will return a sort of discord snowflake

Twitter Snowflake

const ati = require('ati.js'); // Require the package

console.log(ati.twitterSnowflake()); // Will return a sort of twitter snowflake

Custom Snowflake

const ati = require('ati.js'); // Require the package

console.log(ati.snowflake('epoch here')) // Epoch example: 2000-01-01T00:00:00.000Z

Deconstruction

Discord Snowflake

const ati = require('ati.js'); // Require the package

console.log(ati.discordSnowflake.deconstruct("Your snowflake here")); // Will deconstruct a discord type snowflake.

or

const ati = require('ati.js'); // Require the package

const snowflake = ati.discordSnowflake(); // Generation

console.log(ati.discordSnowflake.deconstruct(snowflake)); // Will deconstruct a discord snowflake.

Twitter Snowflake

const ati = require('ati.js'); // Require the package

const snowflake = ati.twitterSnowflake(); // Generation

console.log(ati.twitterSnowflake.deconstruct(snowflake)); // Deconstruction

Docs

Docs Here

For any issues or questions feel free to open up an issue on the GitLab Repo

Notice

Some functions may not be documented. Reasons:

  • It could be that I'm unsure about something
  • It still needs work
  • I don't really want to document it

FAQs

Package last updated on 24 Mar 2021

Did you know?

Socket

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