Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@andresmorelos/ceb-compliance-utils

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@andresmorelos/ceb-compliance-utils

Group of utility libraries from CEB Compliance

  • 1.1.0
  • unpublished
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

CEB Compliance Utils

Utility Library from CEB Compliance @condor-labs

In order to make things modular, we developed this utility library to be used in @condor-labs

How to use it

To use the library you just need to follow the following steps Install the library with npm

npm install @condor-labs/ceb-compliance-utils

IMPORTANT: Before using any dataCollector method, you must call the start function ONCE at the begining of your application so that the dataCollector connects properly to mongoDB

await dataCollector.start();

Example Code

const { dataCollector, utils } = require("../../library/index");

async function init() {
  try {
    /* dataCollector tool */
    console.log("Starting Data Collector Module...");

    //Make sure this method is called before using any method
    await dataCollector.start();

    console.log("Fetching profession using dataCollector...");
    const response = await dataCollector.getSettingsByProfession(159);
    console.log(response.nameProfession);

    /* utils tool */
    const params = {
      ownerId: 123,
      trigger: "UNIT_TEST",
    };
    const jobIdCompound = utils.generateJobId(params);
    console.log(response.nameProfession);
  } catch (error) {
    console.error(error);
  }
}

init();

How to run examples

- Go to the example folder
- Create a .env file and set the values
- Run script `node utils/index.js`, `node dataCollector/index.js`, so on...

Contributors

The original author and current lead maintainer of this module is the @condor-labs development team.

More about Condorlabs Here.

License

MIT

Keywords

FAQs

Package last updated on 28 Oct 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc