jungles-helpers-frontend

Helpers for Jungles

npm install jungles-helpers-frontend
3 downloads in the last week
19 downloads in the last month

Jungles Frontend Helpers

getRoot

Get the whole tree of a current node start with it's root.

getRoot(tree, current)
EN
|- Products
FR
|- Products

If current is fr/products then it will return FR and Products.

navigation(tree, start_level, end_level, current);

Instances with navigation_hide=true will be ignored.

Markdown

markdown(string)

findInstancesByType

findInstancesByType(tree, type)

getFilename

getFilename('name');

Because jungles-files adds a uuid in front of the filename to avoid duplicates you can extract the original filename with this helper.

npm loves you