@cleargdpr/js-sdk

ClearGDPR JS SDK

Stats

StarsIssuesVersionUpdatedCreatedSize
@cleargdpr/js-sdk
1.1.63 years ago3 years agoMinified + gzip package size for @cleargdpr/js-sdk in KB

Readme

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

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.