-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcore.ts
More file actions
31 lines (24 loc) · 943 Bytes
/
core.ts
File metadata and controls
31 lines (24 loc) · 943 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/**
* @fileoverview Core primitives and fundamental constants.
* Holds sentinels, unknown/empty tokens, the internals symbol, and a few
* shared env-var name strings. Intentionally kept small - prefer moving
* constants to a more specific `src/constants/*` module when possible.
*/
// Internal implementation symbol.
export const kInternalsSymbol = Symbol('@socketregistry.constants.internals')
// Sentinel values.
export const LOOP_SENTINEL = 1_000_000
// Error and unknown values.
export const UNKNOWN_ERROR = 'Unknown error'
export const UNKNOWN_VALUE = '<unknown>'
// Empty values.
export const EMPTY_FILE = '/* empty */\n'
export const EMPTY_VALUE = '<value>'
// Undefined token.
export const UNDEFINED_TOKEN: undefined = undefined
// Miscellaneous.
export const COLUMN_LIMIT = 80
export const V = 'v'
// Environment variable name constants.
export const NODE_AUTH_TOKEN = 'NODE_AUTH_TOKEN'
export const NODE_ENV = 'NODE_ENV'