pi-lens
Version:
Real-time code feedback for pi — LSP, linters, formatters, type-checking, structural analysis & booboo
10 lines (9 loc) • 342 B
JavaScript
/**
* Centralized accessor for `js-yaml`. See ./typescript.ts for the rationale.
* Exposes both the default export (callers that do `import yaml from …`) and the
* named `dump`/`load` helpers, sourced from the one import.
*/
import yaml from "js-yaml";
export default yaml;
export const dump = yaml.dump;
export const load = yaml.load;