Skip to main content

NodeJS APIs

For advanced use of your Spell, you may want to enable some NodeJS APIs.

You can enable these APIs by clicking on Dependencies and click on Advanced: NodeJS APIs

NodeJS APIs

Here is the list of APIs you can enable and some associated use-cases:

  • fs: to enable file system access to store and read files. You can only read and write the /tmp folder. More information about managing files here and here
  • path: to manage file path and extract filename. Used generally with fs. More info here
  • crypto: provides cryptographic functionality that includes a set of wrappers for OpenSSL's hash, HMAC, cipher, decipher, sign, and verify functions. More info here
  • util: Utilities such as format or promisify. More info here
  • string_decoder: for decoding Buffer objects into strings in a manner that preserves encoded multi-byte UTF-8 and UTF-16 characters. More info here
  • querystring: provides utilities for parsing and formatting URL query strings. More info here