# Use Moment.js and Lodash in scripts

**URL:** <https://community.fibery.io/t/use-moment-js-and-lodash-in-scripts/3240>\
**Category:** Ideas & Features\
**Created:** [September 2, 2022, 6:03pm UTC](https://community.fibery.io/t/use-moment-js-and-lodash-in-scripts/3240 "2022-09-02T18:03:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dimitri\_S](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/dimitri_s/32/1683_2.png) [@Dimitri\_S](https://community.fibery.io/u/Dimitri_S)\
**Post date:** [September 2, 2022, 6:03pm UTC](https://community.fibery.io/t/use-moment-js-and-lodash-in-scripts/3240/1 "2022-09-02T18:03:37Z")

</div>

It would be really nice if we could have the ability to use the Moment.js and Lodash libraries in our scripts.

---

<div class="post-metadata">

**Author:** ![Matt\_Blais](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/matt_blais/32/1464_2.png) [@Matt\_Blais](https://community.fibery.io/u/Matt_Blais)\
**Post date:** [December 9, 2022, 7:33pm UTC](https://community.fibery.io/t/use-moment-js-and-lodash-in-scripts/3240/2 "2022-12-09T19:33:15Z")

</div>

Ideally we could centrally define JS to import into scripts, and define our own JS + CSS for the UI.

I am injecting JS + CSS into the front end now, but I am forced to use a browser extension as there is no official support.

**Related:**

> [@Centralized script management for Workspace](https://community.fibery.io/t/centralized-script-management-for-workspace/3039):
>
> When you have 30+ bits of javascript scattered among dozens of Rules and Buttons in a dozen Spaces, managing this codebase becomes a nightmare scream. If a Space or DB gets renamed, or if a DB gets moved from one Space to another, scripts break. We really need a more robust way to manage a Workspace’s codebase of scripts - a single place where we can: See everywhere scripts are defined: Space \> DB \> Button/Rule \> Action Perform global search-and-replace on all our scripts (or scripts defi…

---

<div class="post-metadata">

**Author:** ![rawkode](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/rawkode/32/5317_2.png) [@rawkode](https://community.fibery.io/u/rawkode)\
**Post date:** [December 10, 2022, 6:56pm UTC](https://community.fibery.io/t/use-moment-js-and-lodash-in-scripts/3240/3 "2022-12-10T18:56:44Z")

</div>

Might be better to switch to Deno as an interpreter for these functions. This would provide a safe sandbox and means we could important libraries we need at runtime.
