Skip to content
This repository has been archived by the owner on Oct 4, 2024. It is now read-only.
/ ydke.js Public archive

Convert to and from ydke:// URL deck lists

License

LGPL-3.0, GPL-3.0 licenses found

Licenses found

LGPL-3.0
COPYING.LESSER
GPL-3.0
COPYING
Notifications You must be signed in to change notification settings

ProjectIgnis/ydke.js

Repository files navigation

ydke.js

Convert Yu-Gi-Oh! deck lists between ydke:// URL form and passcode arrays. For Node.js only. TypeScript-compatible and dependency-free.

ydke:// URLs are a compact Yu-Gi-Oh! deck serialization format, used in Project Ignis: EDOPro and at YGOPRODECK.

Example usage

const ydke = require("ydke"); // ES6: import * as ydke from "ydke";
ydke.parseURL("ydke://o6lXBZyFNAI=!viOnAg==!7ydRAA==!");
/*
{
  main: Uint32Array(2) [ 89631139, 36996508 ],
  extra: Uint32Array(1) [ 44508094 ],
  side: Uint32Array(1) [ 5318639 ]
}
*/
ydke.toURL({
    main: Uint32Array.from([46986414, 44095762]),
    extra: Uint32Array.from([01861629]),
    side: Uint32Array.from([])
});
// "ydke://rvTMAhLZoAI=!/WccAA==!!"

License

GNU Lesser General Public License 3.0 or later. See COPYING and COPYING.LESSER.

This package is part of Project Ignis.

Yu-Gi-Oh! is a trademark of Studio Dice, Shueisha, and Konami.

About

Convert to and from ydke:// URL deck lists

Resources

License

LGPL-3.0, GPL-3.0 licenses found

Licenses found

LGPL-3.0
COPYING.LESSER
GPL-3.0
COPYING

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published