traffy
v2.0.2
Published
Modules for connecting, modifying and accessing traffy website data.
Downloads
311
Readme
Library for interfacing with traffy website with aditinoal helpful utils
Dependecies
- "@directus/sdk": Connects to traffy underlying api gateway directus
- "commander": Enables CLI functions
- "dotenv": Environment variables management
- "tsup": Build Pack
- "typescript": -
Change log
- Added is_array boolean to component collection 2024-11-02
- Array component now retains meta data and exposes a data field with the array data
- CLI command improvements: (fetch) output file added to env and command line arguments
TODO
- Upgrade flexibility of api calls
- getWebsite -> Get only the website info without fetching components
- getWebsite().getAll() -> Get all pages
- getWebsite().getPage('') -> Get specific pages
- getWebsite().getPage().getComponents() -> Get page with its components