Is it possible to import libraries like Lodash/ momentjs any other modules into the REELS script node?

Is it possible to import libraries like Lodash/momentjs into the script node? If so is the syntax is same like js? Some sample syntax would be helpful.

3 Likes

@Rocky @Muhammed_Sinan please help

1 Like

Moment and Lodash are already available in Alpha, as far as I know. Try accessing it like:
ap.moment() or ap.lodash()

The exact usage might change, but the point is that it can be accessed from the key ap

3 Likes

Hi @error_1.61 , Can we access lodash using key ‘ap’ inside script rule?

could you please help me a sample lodash function like .upperCase() with syntax code.

How about importing other third party libraries, is it possible?

1 Like
  1. Yes, you can access lodash using key ap. But you have to it can be accessed as ap._.
  2. Example: ap._.toLower('STRING')
    image
  3. Third part libraries cannot be set inside ap as it is immutable.
2 Likes

@Vignesh-U using libraries is not possible inside Reels. Its only possible in Alpha as @error_1.61 suggested

5 Likes