Docs Menu

Docs HomeAtlas App Services

JavaScript Support

On this page

  • Syntax
  • Built-In Objects
  • Built-In Methods & Properties
  • Built-In Modules
  • Fully Supported Modules
  • Partially Supported Modules
  • Unsupported Modules

Atlas Functions fully support JavaScript ES5 syntax as well as most modern JavaScript features included in EcmaScript 2015 (ES6) and more recent releases. They can also access most Node.js built-in modules.

Feature
Supported
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
No
Yes
Feature
Supported
No
Yes
Yes
No
No
Yes
Yes
Yes
Yes
No
Feature
Supported
Yes
Yes
Yes
No
Yes
No
Yes
No
No

You can import and use standard Node built-in modules in functions. Atlas Functions support most built-ins with either full or partial support. Some built-ins that are not suited for serverless workloads are not supported.

Note

The supported modules and partially supported modules are compatible with Node API version 10.18.1. Avoid using APIs in these modules introduced after or deprecated since Node 10.18.1.

Atlas App Services fully supports the following built-in modules:

  • assert

  • buffer

  • events

  • net

  • os

  • path

  • punycode

    Note

    The built-in punycode module is deprecated. However, App Services provide the punycode module from npm automatically. You can import the module with:

    const punycode = require("punycode");
  • querystring

  • stream

  • string_decoder

  • timers

  • tls

  • tty

  • url

  • zlib

App Services supports a subset of the functionality of the following modules.

App Services supports the following dgram APIs:

App Services does not support the following dgram APIs:

App Services supports the dns module with the following exceptions:

App Services supports the following fs APIs:

App Services supports all of the http and https APIs except for the Server class functionality.

Similarly, App Services supports only the client-side APIs of http/2.

Note

axios Supported for Sending HTTP Requests

App Services supports v1.3.6 of the HTTP library, axios. You can replace HTTP requests sent through an HTTP Service client with calls to an HTTP library like axios.

App Services supports the following process APIs:

App Services supports the util module with the following exceptions:

App Services supports the crypto module with the following exceptions:

Atlas Functions do not support the following built-in modules:

  • child_process

  • cluster

  • domain

  • readline

  • v8

  • vm

←  Handle Errors in FunctionsAtlas Triggers →