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

23
static/js/ketcher2/node_modules/own-or-env/README.md generated vendored Normal file
View File

@ -0,0 +1,23 @@
# own-or-env
Use an objects own property, or an environment variable. Optionally
treat as a boolean if the env should be set to 1 or 0.
## API
`ownOrEnv(object, field, env, boolean)`
Use the `object[field]` if it's an own property, otherwise use the
named environent variable. If `boolean` is set to `true`, then cast
to a boolean flag.
## USAGE
```js
// will set doTheThing to true based on config.doThing, falling back
// to reading process.env.DO_THING, where '0' is treated as false.
var doTheThing = ownOrEnv(config, 'doThing', 'DO_THING', true)
// just treat this one as a string, not a boolean flag
var file = ownOrEnv(config, 'file', 'MY_FILE')
```