This package has been deprecated

Author message:

Please use parse-roblox-errors (https://www.npmjs.com/package/parse-roblox-errors) instead of this package.

parse-roblox-errors-node
TypeScript icon, indicating that this package has built-in type declarations

1.1.1 • Public • Published

parse-roblox-errors

A NodeJS port (ported by MightyPart) of Julli4n's parse-roblox-errors deno module for parsing BEDEV1/BEDEV2 Roblox errors form the responses, since Roblox is extremely inconsistent. This will also parse x-roblox-system-reason on the few endpoints that give it.

Usage

BEDEV1 (anything except apis.roblox.com)

import { parseBEDEV1Error } from "https://deno.land/x/parse_roblox_errors@1.1.1/mod.ts";

console.log(
    await fetch("http://auth.roblox.com/v2/signup").then(parseBEDEV1Error),
);
console.log(
    await fetch("https://develop.roblox.com/v1/assets?assetIds=1818").then(
        parseBEDEV1Error,
    ),
);

BEDEV2 (apis.roblox.com)

What the module was made for.

import { parseBEDEV2Error } from "https://deno.land/x/parse_roblox_errors@1.1.1/mod.ts";

console.log(
    await fetch("https://apis.roblox.com/explore-api/v1/get-sort-content").then(
        parseBEDEV2Error,
    ),
);
console.log(
    await fetch("https://apis.roblox.com/toolbox-service/v1/items/details")
        .then(
            parseBEDEV2Error,
        ),
);

Readme

Keywords

none

Package Sidebar

Install

npm i parse-roblox-errors-node

Weekly Downloads

4

Version

1.1.1

License

MIT

Unpacked Size

47 kB

Total Files

38

Last publish

Collaborators

  • cameroncampbell