# @smash-sdk/core

> Smash Sdk Core

Latest version **3.0.2** (published 2025-06-10) · MIT license · 0 weekly downloads

## Install

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

## Health

**Score 40/100 (D)** — status: maintenance-mode.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.0.2 |
| Published | 2025-06-10 |
| First published | 2022-11-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 4 |
| Unpacked size | 77.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Smash & Co |
| Maintainers | noxs, terrypst |
| Keywords | smash, sdk, core |

## Links

- npm: https://www.npmjs.com/package/@smash-sdk/core
- npm.io page: https://npm.io/package/@smash-sdk/core

## Dependencies (4)

- [qs](https://npm.io/package/qs.md) ^6.14.0
- [axios](https://npm.io/package/axios.md) ^0.30.0
- [axios-retry](https://npm.io/package/axios-retry.md) ^3.3.1
- [fast-xml-parser](https://npm.io/package/fast-xml-parser.md) ^4.0.11

## Alternatives

- [lodash.assign](https://npm.io/package/lodash.assign.md) — 2.3M weekly downloads
- [lodash.chunk](https://npm.io/package/lodash.chunk.md) — 1.8M weekly downloads
- [react-native-ios-utilities](https://npm.io/package/react-native-ios-utilities.md) — 138.5K weekly downloads
- [@technically/lodash](https://npm.io/package/@technically/lodash.md) — 50.9K weekly downloads
- [@fluid-topics/ft-icon](https://npm.io/package/@fluid-topics/ft-icon.md) — 20.6K weekly downloads

## Recent versions

- 3.0.2 (latest) — 2025-06-10
- 3.0.1 — 2025-06-06
- 3.0.0 — 2025-06-05
- 2.1.1 — 2024-03-11
- 2.1.0 — 2024-03-04
- 2.0.4 — 2023-11-15
- 2.0.3 — 2023-09-14
- 2.0.2 — 2023-09-13
- 2.0.1 — 2023-07-13
- 2.0.0 — 2023-03-27
- 1.1.0 — 2022-12-05
- 1.0.0 — 2022-11-23
- 0.0.3 — 2022-11-15
- 0.0.2 — 2022-11-07
- 0.0.1 — 2022-11-07
- … 1 more at https://npm.io/package/@smash-sdk/core/versions

## README

<p align="center">
  <a href="https://fromsmash.com/"><img src="https://developer.fromsmash.com/LOGO_SMASH_API.png" align="center" width="135" alt="Send big files"/></a>
<h1 align="center">@smash-sdk/core</h1>
</p>
<br />
<p align="center">
  <a href="https://npmjs.com/package/@smash-sdk/core"><img
      src="https://img.shields.io/npm/v/@smash-sdk/core.svg" /></a>
  <br />
</p>
<hr />

@smash-sdk/core is a JavaScript library that provides core functionality for [Smash SDK](https://api.fromsmash.com/).
<hr />

## Table of Contents

- [Table of Contents](#table-of-contents)
- [Installation](#installation)
- [Usage](#usage)
- [Documentation](#documentation)
- [Contributing](#contributing)
- [License](#license)

## Installation

This package is already installed when a Smash SDK package is installed in your project, so you should not have to install it manually. If you are using the [Smash Uploader](https://github.com/fromsmash/smash-uploader-js) and/or [Smash Downloader](https://github.com/fromsmash/smash-downloader-js), this package is not yet usable (for now).

 Anyway, @smash-sdk/core is available on npm: 

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

## Usage

The main feature of @smash-sdk/core is to set a default configuration for any SDKs futur instanciation.
Most of Smash SDKs needs a token and/or a region to be used.


To use @smash-sdk/core in your project, you need to first import it into your JavaScript file:

```javascript
import { config } from "@smash-sdk/core";
```

You can set the config object with your Smash API credentials ([How to get Smash API crendentials](https://api.fromsmash.com/docs/quick-start)).


```javascript
config.setToken("Your Smash API key here");
```

Smash is available accross 9 regions. You may pick up a region of your choice and set it as default:

```javascript
config.setRegion("eu-west-3");
```

## Documentation

For more information on how to use Smash SDKs, you can refer to the Smash Docs [documentation](https://api.fromsmash.com/docs).

## Contributing

We welcome contributions! If you'd like to help improve @smash-sdk/core, please fork the repository, make your changes, and submit a pull request.
## License

@smash-sdk/core is released under the MIT License.

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