open-index/open-npm huggingface dataset:
npm package: @quan-to/chevronlib
Description: Chevron GPG Library Wrapper for Node.JS
Author: Quanto
Latest version: 1.3.1

# ChevronLib Node.JS Wrapper

## Installation

```bash
npm i @quan-to/chevronlib
```

## Usage

```javascript
const chevron = require('@quan-to/chevronlib');

const payloadToSign = "HUEBR";


function toBase64(data) {
	const buff = Buffer.from(data);
	return buff.toString('base64');
}

(async() => {
	console.log('Generating key');
	const key = await chevron.generateKey('123457890', 'Test Key', 2048);

	console.log('Loading key');
	const fingerprint = await chevron.loadKey(key);

	console.log(`Unlocking key ${fingerprint}`);
	await chevron.unlockKey(fingerprint, '123457890');

	console.log('Signing data "${payloadToSign}"');
	const signature = await chevron.signData(toBase64(payloadToSign), fingerprint);

	console.log(`Validating signature: ${signature}`);
	const verification = await chevron.verifySignature(toBase64(payloadToSign), signature);
	console.log(`Signature is valid: ${verification}`);
})();

```

## Building for release

TODO
npm package: @quan-to/connect-web-embedded
Description: Javascript Web Embedded to start Connect on Partner's application
Author: Quanto
Latest version: 1.1.8

# Connect Web Embedded

This web client will help you as a partner to initialize Quanto Connect embedded in your application.

[![](https://data.jsdelivr.com/v1/package/npm/@quan-to/connect-web-embedded/badge)](https://www.jsdelivr.com/package/npm/@quan-to/connect-web-embedded)

* [Demo](#demo)
* [Installing](#installing)
* [Creating an instance](#creating-an-instance)
* [How to use](#how-to-use)
* [Callbacks](#callbacks)
* [Run and Build](#run-and-build)
* [About](#about)
    * [Stack](#stack)
    * [Contributing](#contributing)
    * [Support](#support)

# Demo

https://connect-4k39dld76.vercel.app

# Installing

Using npm:

```
$ npm i @quan-to/connect-web-embedded
```

Using yarn:

```
$ yarn add @quan-to/connect-web-embedded
```

Using cdn:

```
<script src="https://cdn.jsdelivr.net/npm/@quan-to/connect-web-embedded@1.1.7/dist/index.min.js"></script>
```

# Creating an instance

How you can create a new instance of Connect.

**new Connect([config])**

```javascript
const connect =  new Connect({    
    // Connect Session ID
    session: 'c889f8e9-8c58-456d-8f35-3840a292a574',
    
    // Connect Session environment
    env:'sandbox' 
});
```

# How to use

```javascript
const connect = new Connect({
    session: 'c889f8e9-8c58-456d-8f35-3840a292a574',
    env: 'sandbox'
});

connect.onLoad(() => {
    console.log('Do something')
})

connect.onSuccess(() => {
    console.log('Do something')
})
```

# Callbacks

method | params | return | description
-------|--------|--------|------------
onLoad | function | void | This callback will be call when Connect is ready
onExit | function | void | This callback will be call when the user leaves the application
onAuthSuccess | function | data | This callback will be call after user login 
onAuthFail | function | void | This callback will be call after user login fail
onSelectBank | function | data | This callback will be call after user select a bank
onAddAccountSuccess | function | data | This callback will be call after user add a new account
onGrantedPermission | function | data | This callback will be call when user granted the permission and return the permission
onSuccess | function | void | This callback will be call when user finished the flow with success

# Run and Build

Run(watch):

```
$ yarn start
```

Build:

```
$ yarn build
```

# About

## Stack

* [TypeScript - ^3.7.3](https://www.typescriptlang.org/)
* [Parcel - ^1.12.4](https://parceljs.org/)

## Contributing

[Link](https://github.com/quan-to/connect-web-embedded/blob/master/CONTRIBUTING.md)

## Support

[suporte@quan.to](mailto:suporte@quan.to)