UNPKG

yini-parser

Version:

Readable configuration without YAML foot-guns or JSON noise. The official Node.js parser for YINI config format — An INI-inspired configuration format with clear nesting, explicit types, and predictable parsing.

22 lines 596 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isError = void 0; /** * Error instance helper. * @example * ... * } catch (err: unknown) { * if (err instanceof Error) { * console.error("Message:", err.message) * console.error("Stack:", err.stack) * } else { * console.error("Unknown error:", err) * console.error("Thrown value:", JSON.stringify(err)) * } * } */ const isError = (e) => { return e instanceof Error; }; exports.isError = isError; //# sourceMappingURL=system.js.map