Scripting
Available libraries (automations)
Use these Node.js libraries in the code of your automations without importing them.
They work in script filters, Perform a calculation and Execute a script. Call each library by its alias. Example: format a date with date-fns.
date_fns.format(new Date(current_datetime_local), 'yyyy-MM-dd')
| Library | Aliases | Version | Description |
|---|---|---|---|
| Lodash | lodash, _ | 4.17.21 | Utility functions for arrays, objects and strings. |
| Moment.js | moment | 2.30.1 | Parse, validate, change and format dates and times. |
| date-fns | date_fns | 2.30.0 | Date utility functions. |
| date-fns-tz | date_fns_tz | 2.0.1 | Timezone support for date-fns, based on the Intl API. |
| uuid | uuid | 8.3.2 | Create RFC4122 UUIDs. |
| cheerio | cheerio | 1.0.0-rc.10 | Parse and read HTML on the server, with a jQuery-like API. |
| striptags | striptags | 3.2.0 | Remove HTML tags from a string, like PHP's strip_tags. |
| minimatch | minimatch | 9.0.5 | Match strings against glob patterns. |
| jsonata | jsonata | 1.8.6 | Query and transform JSON, see the JSONata documentation. |
Missing a library?
Submit an issue on GitHub, and the Tape team looks into it.