UNPKG

plist2

Version:

Converts between .tmLanguage(.plist), .json, .cson and .yaml formats

20 lines (17 loc) 434 B
/* eslint-disable */ /* dester builds: js2yaml.ts */ 'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var lib = require('../lib'); var yaml = require('yaml'); /* filename: js2yaml.ts timestamp: 2024-12-13T15:18:07.964Z */ var js2yaml = (source, indent = 2) => lib.changeYamlIndentOnString(yaml.stringify(source, { indent: indent === +indent ? indent : 2 }), indent); exports["default"] = js2yaml;