Module: platforms

Source:

Members

(static, constant) PLATFORMS :object

These constants are used in 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.

Type:
  • object
Properties:
Name Type Description
NODE_JS 'node'
BROWSER 'browser'
Source: