# @smash-sdk/promotion

> Smash Sdk Promotion

Latest version **0.0.3** (published 2024-03-11) · 0 weekly downloads

## Install

```sh
npm install @smash-sdk/promotion
pnpm add @smash-sdk/promotion
yarn add @smash-sdk/promotion
bun add @smash-sdk/promotion
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2024-03-11 |
| First published | 2023-09-14 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 56.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Maintainers | terrypst, noxs |
| Keywords | smash, sdk, promotion, fromsmash, node, nodejs, transfer, upload, uploader, file-upload, file-uploader, files, big-file, big-files, big file, big files, multipart, multipart-upload, multipart-uploader, cdn, library, typescript, browser, html, html5, html5-uploader, progress, angular, react, vue, http, https, promise, async, await |

## Links

- npm: https://www.npmjs.com/package/@smash-sdk/promotion
- Repository: https://github.com/fromsmash/smash-sdk-js
- Homepage: https://github.com/fromsmash/smash-sdk-js#readme
- Issues: https://github.com/fromsmash/smash-sdk-js/issues
- npm.io page: https://npm.io/package/@smash-sdk/promotion

## Dependencies (1)

- [@smash-sdk/core](https://npm.io/package/@smash-sdk/core.md) ^2.1.1

## Alternatives

- [promise-throttle](https://npm.io/package/promise-throttle.md) — 44.2K weekly downloads
- [@commercetools/sync-actions](https://npm.io/package/@commercetools/sync-actions.md) — 25.1K weekly downloads
- [cwait](https://npm.io/package/cwait.md) — 21.4K weekly downloads
- [@ledgerhq/hw-app-cosmos](https://npm.io/package/@ledgerhq/hw-app-cosmos.md) — 4.2K weekly downloads
- [@financial-times/o-loading](https://npm.io/package/@financial-times/o-loading.md) — 2.8K weekly downloads

## Recent versions

- 0.0.3 (latest) — 2024-03-11
- 0.0.2 — 2023-12-15
- 0.0.1 — 2023-09-14

## README

<p align="center">
  <a href="https://api.fromsmash.com/"><img src="https://developer.fromsmash.com/LOGO_SMASH_API.png" align="center" width="135" /></a>
<h1 align="center">@smash-sdk/promotion</h1>
</p>
<br />
<p align="center">
  <a href="https://npmjs.com/package/@smash-sdk/promotion"><img
      src="https://img.shields.io/npm/v/@smash-sdk/promotion.svg" /></a>
  <br />
  <img
    src="https://badges.herokuapp.com/browsers?labels=none&googlechrome=latest&firefox=latest&microsoftedge=latest&edge=latest&safari=latest&iphone=latest" />
</p>
<hr />

## Table of Contents

- [Table of Contents](#table-of-contents)
- [Installation](#installation)
- [Getting started](#getting-started)
  - [Import](#import)
  - [Usage](#usage)
- [API Reference](#api-reference)
- [Examples](#examples)
- [Contributing](#contributing)
- [License](#license)


## Installation

You can install @smash-sdk/promotion using npm:


```bash
npm install @smash-sdk/promotion
```


## Getting started

### Import

The Smash SDK is version-modulated. Some methods are only available in latest version. Make sure you're using the right version according to the
documentation to be able to use a particular method.

```js
// Using ES6 module
import { Promotion } from '@smash-sdk/promotion/10-2019';
```

```js
// Or using CommonJS module
const { Promotion } = require('@smash-sdk/promotion/10-2019');
```

### Usage

```js
const promotion = new Promotion({ region: "eu-west-3", token: "Put your Smash API Key here" });
```

Parameters:

- `region` (required): A string indicating the Smash region to use for the SDK Promotion. **It should be the same region as your API key**. To find the
corresponding region, go to the [Smash developer account API Keys section](https://developer.fromsmash.com/apikeys) and find the region of your API
Key. This should be one of the following values: **'eu-west-1'**, **'eu-west-2'**, **'eu-west-3'**, **'eu-central-1'**, **'us-east-1'**,
**'us-east-2'**, **'us-west-1'**, **'us-west-2'**, or **'ca-central-1'**.

- `token` (required): A string containing your [smash API Key](#generating-an-api-key).


## API Reference

Please refer to the [API documentation](https://api.fromsmash.com/docs/integrations/node-js) for more information on the available methods and
options.

## Examples

You can find node usage and integration examples of @smash-sdk/promotion in the dedicated [examples
folder](https://github.com/fromsmash/example-js/tree/main/node/ts).

## Contributing

Contibutions are welcome! If you'd like to help improving @smash-sdk/promotion, please fork the repository, make your changes, and submit a pull request.

## License

@smash-sdk/promotion is released under the MIT License

---
_Source: https://npm.io/package/@smash-sdk/promotion · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
