open-index/open-npm huggingface dataset:
npm package: @getevy/api-client
Description: A JS client for the Evy API
Author: Evy
Latest version: 0.0.32

# JS Evy API Client

An extended JS/TS client for [Evy API](https://evy.readme.io/reference/introduction).

Works in browsers and node.

## Add the dependency to your project

```sh
npm i @getevy/api-client
```

## Initialization

```typescript
import EvyApi from '@getevy/api-client';
const apiClient = new EvyApi({ apiKey: 'your_api_key' });
```

**Configuration object**

| Key          | **Required** | **Description**                                                             |
| ------------ | ------------ | --------------------------------------------------------------------------- |
| **apiKey**   | **yes**      | your API key                                                                |
| **apiURL**   | no           | the URL of the API to target                                                |
| **language** | no           | the prefered language of the user, only `en` and `fr` are supported for now |

## Usage

### Get offers

**Usage**

```typescript
const offers = await apiClient.offers.get('product_id', 1000, 'en');
```

**Interface**

```typescript
apiClient.offers.get(product_id: string, price: number, language?: string) => Promise<IOffersData>
```

**Parameters (from left to right)**

| Name           | **Required** | **Description**                                  |
| -------------- | ------------ | ------------------------------------------------ |
| **product_id** | **yes**      | The product for which we want insurance offers   |
| **price**      | **yes**      | The current price of the product                 |
| **language**   | no           | The locale (overrides the initial configuration) |

**Result: IOffersData**

| Key         | Description                                           |
| ----------- | ----------------------------------------------------- |
| **offers**  | The offers attachable on the product                  |
| **locales** | The translations of the wording to use with the offer |

See the [types](src/types/offer.ts) or the [API documentation](https://evy.readme.io/reference/retrieve-offers) for further descriptions.

## License

The MIT License (MIT). Please see the [License File](./LICENSE) for more information.
npm package: @getevy/evy-ui
Description: The library of Evy flavored ui components. Is supposed to be used on dashboard projects.
Author: Evy
Latest version: 7.0.0-alpha.19
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

#Evy ui

The library of Evy-flavored UI components.

## Project Installation

Clone the project folder to your local work directory, then run

```bash
npm i
```

## Project usage

To start the storybook locally, please run

```bash
npm start
```
npm package: @getevy/js-sdk
Description: The Javascript SDK to create and manage Evy components
Author: Evy
Latest version: 0.0.32

# Evy SDK

Evy SDK is a vanilla JS / TS library that provides widgets for your Evy integration.

Evy is not meant to be used directly with frameworks or UI libraries (eg. React/Vue.js/Angular/Ember...). Instead, you should use [Evy stately](../stately/README.md).

## Installation

```sh
npm i @getevy/js-sdk
```

Alternatively, you can link the library in your HTML page, like that:

```html
<head>
  <script src="https://cdn.jsdelivr.net/npm/@getevy/js-sdk@latest/dist/bundle.js"></script>
  ...
</head>
```

## Initialization

```typescript
import { init as initEvySdk, components as evyComponents } from '@getevy/js-sdk';

const evySdk = initEvySdk({ apiKey: 'your_api_key' });

evySdk.addComponents([
  evyComponents.inlineOffer({
    container: '#inlineOffer-container',
    product: 'my-product-id',
  }),
]);
```

**Configuration object**

| Key          | **Required** | **Description**                                              |
| ------------ | ------------ | ------------------------------------------------------------ |
| **apiKey**   | **yes**      | your API key                                                 |
| **apiURL**   | no           | the URL of the API to target                                 |
| **operator** | no           | An object containing the `name`and `logoUrl` of the operator |

## Components

### cartOffer

Component to use in the cart to display the currently selected offer or add one there.

**Parameters object**

| Key           | **Required** | **Description**                                                           |
| ------------- | ------------ | ------------------------------------------------------------------------- |
| **container** | **yes**      | The selector of the container of the component (for example an empty div) |
| **product**   | **yes**      | The product ID                                                            |

### inlineOffer

Component to use in a product description page.

**Parameters object**

| Key           | **Required** | **Description**                                                           |
| ------------- | ------------ | ------------------------------------------------------------------------- |
| **container** | **yes**      | The selector of the container of the component (for example an empty div) |
| **product**   | **yes**      | The product ID                                                            |

### modalOffer

A variation of the inline offer with a modal.

**Parameters object**

| Key           | **Required** | **Description**                                                                           |
| ------------- | ------------ | ----------------------------------------------------------------------------------------- |
| **product**   | **yes**      | The product ID                                                                            |
| **modalType** | no           | The placement of the modal. Can be either `left`, `right`. `center`. Defaults to `center` |
npm package: @getevy/luhn-validation
Description: A full TypeScript EAN, UPC, IMEI, EID, ISBN & card validation tool
Author: @kfbfarley
Latest version: 11.0.0

<h1 align="center">
      <br>A full TypeScript EAN, UPC, IMEI, EID, ISBN & card validation tool<br/>
</h1>

** Forked from https://github.com/kfbfarley/luhn-validation **

A quick and useful TypeScript package verify whether the EAN, UPC, IMEI, EID, ISBN, and card is valid or not, it uses <b>Luhn algorithm</b> validation method.

> [Luhn algorithm](https://www.geeksforgeeks.org/luhn-algorithm/) also known as the modulus 10 or mod 10 algorithm, is a simple checksum formula used to validate a variety of identification numbers.

## 🚀 Technologies

This project was built using the following technologies:

- [Typescript](https://www.typescriptlang.org/)
- [Jest](https://jestjs.io/)
- [Prettier](https://prettier.io/)
- [Tslint](https://palantir.github.io/tslint/)
- [BigInteger](https://github.com/peterolson/BigInteger.js)

## 💻 Installation

To add this package to your project, simply execute the following command:

> Remind: You must be on your project root directory

```
$ npm install luhn-validation
```

## 🔎 Usage

```
$ import { imei } from 'luhn-validation';
```

> Tip: Place your mouse pointer over the validate and you will have access to descriptions

### Methods

- ean (string | number)
  > Validate EAN number
- upc (string | number)
  > Validate UPC number
- imei (string | number)
  > Validate IMEI number
- eid (string)
  > Validate EID number
- isbn (string | number)
  > Validate ISBN number
- card (string | number)
  > Validate credit/debit card number

## 📏 Example

If you want to check if an IMEI is valid or not, do the following:

```
$ import { imei } from 'luhn-validation';
// validate function returns a boolean

console.log(imei(868241056923981))
//boolean result
```

## 👍 Contributing

Contributions are what make this platform an amazing place to learn, inspire, and create. Please feel free to visit the [open issues](https://github.com/kfbfarley/luhn-validation/issues) section to propose or create a related issue.

## 📄 Licensing

This repository is MIT licensed, as found in the [LICENSE][l] file.

[luhn-validation](https://github.com/kfbfarley/luhn-validation) has no documentation, just this repo.

[l]: https://github.com/kfbfarley/luhn-validation/blob/master/LICENSE