Rate this page:
The JavaScript API is a set of APIs that provide additional functionality to the Forge platform. You can use these APIs to interact with REST endpoints and to store data.
To access APIs from your Forge app, first install the latest API package by running:
1
npm install @forge/api
This package will enable the use of the following APIs:
The global process object is a partial implementation of the Node JS process.
1
process
Key | Value |
---|---|
platform | forge |
env | See Environments. |
version | The underlying Node JS version. Example: process.version // 12.14.1
|
versions | Versions of runtime dependencies. Example: {
forge: 'forge:47',
node: '12.14.1'
}
|
nextTick | A polyfill of Node JS nextTick. |
Rate this page: