JS Libraries
JavaScript libraries simplify common tasks such as data manipulation, date handling, and more. These libraries can be accessed using their imported names inside Appsmith.
Built-in JS Libraries
Appsmith provides the following built-in JavaScript libraries that can be utilized in your applications.
Lodash
{{ _.sortBy(fetchUsers.data, ["age"]) }}
For more information, see Lodash
Moment
{{ moment(datePicker1.selectedDate.format('DD MMM')) }}
For more information, see Moment
Fast XML Parser
{{ xmlParser.parse(xmlAPI.data) }}
For more information, see Fast XML Parser
Forge
export default {
hash() {
var md = forge.md.sha256.create();
md.update("The quick brown fox jumps over the lazy dog");
return md.digest().toHex();
},
};
For more information, see Forge
External JS Libraries
You can also follow this guide to install external javascript libraries that are not loaded by default into your application.