@cleargdpr/js-sdk

1.1.6 • Public • Published

JS-SDK

npm (scoped)

SDK design is based on several patterns, but main idea is to provide a way to abstract calls to the CG API, and have a way to trigger internal Events when some specific actions is done.

##Table of Contents

Architecture

├─ config
├─ scripts
└─ src
    ├─ common     # Reusable functions
    ├─ factories  # Service provider of different functions
    ├─ modules    # Each module represents a specification of the CG API
    ├─ cg.js      # CG SDK definition require Token and register all the modules
    ├─ events.js  # Events subscription/notification used by different flows
    ├─ config.js  # Default configuration, could be overwritten
    └─ index.js

Related reads

Readme

Keywords

none

Package Sidebar

Install

npm i @cleargdpr/js-sdk

Weekly Downloads

1

Version

1.1.6

License

none

Unpacked Size

853 kB

Total Files

29

Last publish

Collaborators

  • fjcero
  • nelrohd