Current Dev State

This commit is contained in:
Tim Lorsbach
2025-06-23 20:13:54 +02:00
parent b4f9bb277d
commit ded50edaa2
22617 changed files with 4345095 additions and 174 deletions

17
static/js/ketcher2/node_modules/tap/lib/obj-to-yaml.js generated vendored Normal file
View File

@ -0,0 +1,17 @@
module.exports = objToYaml
var cleanYamlObject = require('./clean-yaml-object.js')
var yaml = require('js-yaml')
function objToYaml (obj) {
obj = cleanYamlObject(obj)
var y = ''
if (obj && typeof obj === 'object' && Object.keys(obj).length) {
y = yaml.safeDump(obj).split('\n').map(function (l) {
return l.trim() ? ' ' + l : l.trim()
}).join('\n')
y = ' ---\n' + y + ' ...\n'
}
return y
}