Source: platforms.ts

/**
 * @author Michael Hasenstein <hasenstein@yahoo.com>
 * @copyright REFINIO GmbH 2018
 * @license CC-BY-NC-SA-2.5; portions MIT License
 * @version 0.0.1
 */

/**
 * @module
 */

/**
 * These constants are used in {@link system/storage-base.ts|`system/storage-base`}
 * to provide easy runtime platform
 * detection without code. Import `platform` from `system/storage-base.js`, it will be one of
 * these constants. The actual strings may change, but if you use this enum they keys will
 * remain constant. The enum also helps to avoid duplicating string constants across different
 * code modules. A type checker can check the enum keys used here, but not string constants.
 * @static
 * @type {object}
 * @property {'node'} NODE_JS
 * @property {'browser'} BROWSER
 */
export const PLATFORMS = {
    NODE_JS: 'node',
    BROWSER: 'browser'
} as const;