Abck is a library that makes generating akamai cookies easier.
$ npm install abck
$ yarn add abck
import Abck from 'abck'; // const Abck = require('abck');
function get_cf_date(): number;
function uar(userAgent: string): string;
function sed(): string;
function x2(): number;
function ab(t: string): number;
function ff(a: number): string;
function to(): { d3: number; o9: number };
function jrs(a: number): number[];
function isIgn(fidcnt: number, activeElement: Element, keyCode: number): number;
function getFloatVal(a: number): string;
function x1(): string;
function od(x: string, y: string): string;
function encode(a: string): string;
function get_mn_params_from_abck(abck: string): (string | number)[][];
function mn_get_current_challenges(abck: string): string[];
function mn_s(a: string): number[];
function bdm(a: number[], t: number): nmuber;
function ats(a: number[]): string;
function validateCookie(cookieChecks: string[], abck: string): boolean;
function getmr(): string; // Only works correctly in browser
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.