clayutils
Utility functions for working with Clay.
Version 2.x is compatible with Amphora 5.x. For pre-5.x utilities refer to 1.x releases.
Installation
npm install --save clayutils
Utils:
- findComponentRefInPage (code|tests|docs)
- getComponentInstance (code|tests|docs)
- getComponentName (code|tests|docs)
- getComponentVersion (code|tests|docs)
- getLayoutInstance (code|tests|docs)
- getLayoutName (code|tests|docs)
- getListInstance (code|tests|docs)
- getPageInstance (code|tests|docs)
- getPageVersion (code|tests|docs)
- getPrefix (code|tests|docs)
- isComponent (code|tests|docs)
- isDefaultComponent (code|tests|docs)
- isDefaultLayout (code|tests|docs)
- isLayout (code|tests|docs)
- isLayoutMeta (code|tests|docs)
- isList (code|tests|docs)
- isPage (code|tests|docs)
- isPageMeta (code|tests|docs)
- isPublished (code|tests|docs)
- isUri (code|tests|docs)
- isUser (code|tests|docs)
- jsonPrefixToSlug (code|tests|docs)
- jsonSlugToPrefix (code|tests|docs)
- replaceVersion (code|tests|docs)
- uriPrefixToSlug (code|tests|docs)
- uriSlugToPrefix (code|tests|docs)