Third-party libraries
Early in their careers, every developer learns one of the most critical principles of software engineering: DRY (Don’t Repeat Yourself). Leveraging third-party libraries is a time-saving practice, sparing developers the need to develop functionalities already provided by the library. QuickDEV offers several built-in third-party libraries for common tasks, and you can manually import additional libraries as needed.
Built-in libraries
QuickDEV provides some JavaScript built-in libraries for use.
uuid
Create, parse and validate UUIDs of version 1 to 5
lodash
Utility methods for Arrays, Collections, Functions, Objects, Strings, Numbers, Math, and Seq.
numbro
Powerful Number formatting helper
papaparse
Parser for CSV to JSON
Built-in Libraries can be used directly everywhere where you can use JavaScript.
External libraries
It is possible to import external libraries at the workspace or app level.
Import at the application level
Go to the settings page and select the JavaScript library tab. Then, click the addition icon (+). After pasting the library URL, select Add New. At this point, QuickDEV will determine whether the external library is compatible and safe to use.
You can also click the download icon to quickly download any recommended JS library.
Now, you can create a JS query and insert code.
You cannot use the cowsay library in any other app in your workspace because it is imported at the app level in our example.
External libraries imported into QuickDEV are attached to the window instance.
Import at the workspace level
Navigate to QuickDEV homepage.
Choose Settings > Advanced > Add.
Copy the URL of the third-party JavaScript library you want to add.
Select "Add New" and paste the copied URL.
Once added, all apps within your workspace can access the installed libraries.
Last updated