Layout ID Parser
A small library that parses the ID string in a Nintendo Switch layout json
file.
Examples
import { parseID, stringifyID, getDefaultID } from "@themezernx/layout-id-parser";
console.log(parseID("Themezer:3|b77b434f-5811-42fc-bd5e-ab44d7f24b61"));
console.log(parseID("Themezer:3|b77b434f-5811-42fc-bd5e-ab44d7f24b61, adfasdff-5811-42fc-bd5e-ab44d7f24b61"));
console.log(
stringifyID({
service: "Themezer",
id: "3",
optionUuids: ["b77b434f-5811-42fc-bd5e-ab44d7f24b61"],
})
);
console.log(getDefaultID("home"));
Build
yarn
yarn run build