MCPcopy
hub / github.com/ampproject/amphtml / env

Function env

build-system/common/update-session-issues/index.js:367–372  ·  view source on GitHub ↗

* @param {string} key * @return {string}

(key)

Source from the content-addressed store, hash-verified

365 * @return {string}
366 */
367function env(key) {
368 if (!(key in process.env)) {
369 throw new Error(`Missing env variable: ${key}`);
370 }
371 return /** @type {string} */ (process.env[key]);
372}
373
374const datetimeFromTitleRegexp = /(\d{4}-\d{2}-\d{2}) (\d{1,2}[:]\d{2})/;
375

Callers 1

index.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected