You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/scripts/index.mdx
+33Lines changed: 33 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,6 +16,7 @@ NocoDB Scripts is a powerful automation engine that allows you to write JavaScri
16
16
-**Database Access**: Query tables and views, create, update, and delete records
17
17
-**User Interaction**: Collect input from users with interactive prompts
18
18
-**External Integration**: Connect to third-party services via HTTP requests
19
+
-**External Package Imports**: Import and use popular NPM packages from CDN (lodash, dayjs, etc.)
19
20
-**Visual Output**: Display results in formatted tables, markdown, and more
20
21
-**TypeScript Support**: Enjoy code completion and type checking in the script editor
21
22
@@ -103,4 +104,36 @@ if (count > 0) {
103
104
-**Output**: Display formatted results with text, markdown, tables, and progress indicators
104
105
-**API Integration**: Connect to external services and NocoDB's REST APIs
105
106
107
+
## Using External Packages
108
+
109
+
NocoDB Scripts supports importing external JavaScript packages from CDN using **dynamic imports**, allowing you to leverage popular NPM libraries in your scripts.
110
+
111
+
<Callouttype="warning">
112
+
**Important:** Only dynamic imports using `import()` are supported. Static imports (e.g., `import _ from 'lodash'`) are not supported.
0 commit comments