fargv
Version:
Multi-customizable parser of process.argv for nodejs.
29 lines (21 loc) • 1.11 kB
JavaScript
module.exports = {
0: "None",
1: "Maximum call stack size exceeded appears!",
200: "Can't parse array in array.",
201: "Can't parse object in array.",
300: "Can't parse object in object property.",
301: "Can't parse array in object property.",
302: "Object doesn't have a colon.",
303: "Parsing stuck on possible object prop value.",
304: "Duplicate object keys detected.",
400: "Wrong command parser.",
500: "SyntaxError: numeric separators '_' are not allowed in numbers that start with '0'.",
501: "SyntaxError: numeric separators '_' cannot be used at the beginning or end.",
502: "SyntaxError: multiple numeric separators '_' cannot be included one after the other.",
503: "SyntaxError: underscore can appear only between digits, not after the last digit in a number.",
504: "SyntaxError: identifier starts immediately after numeric literal.",
505: "SyntaxError: missing exponent.",
506: "SyntaxError: unexpected 'e' token.",
507: "SyntaxError: the 'e' token is not supported in the bigint syntax.",
508: "SyntaxError: the '.' token is not supported in the bigint syntax.",
};