https://github.com/gomah/sendle-node
Unofficial Node.js library for the Sendle API
https://github.com/gomah/sendle-node
node node-client nodejs sendle sendle-api wrapper
Last synced: 9 months ago
JSON representation
Unofficial Node.js library for the Sendle API
- Host: GitHub
- URL: https://github.com/gomah/sendle-node
- Owner: Gomah
- License: mit
- Created: 2021-05-02T05:19:43.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-01-30T21:17:51.000Z (almost 2 years ago)
- Last Synced: 2025-03-23T23:15:39.066Z (10 months ago)
- Topics: node, node-client, nodejs, sendle, sendle-api, wrapper
- Language: TypeScript
- Homepage: https://sendle-node.vercel.app
- Size: 6.07 MB
- Stars: 4
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://sendle-node.vercel.app/)
[](https://github.com/gomah/sendle-node/actions?query=workflow%3ACI+branch%3Amain)
[![npm version][npm-version-src]][npm-version-href]
[![Dependencies][david-dm-src]][david-dm-href]
[![npm downloads][npm-downloads-src]][npm-downloads-href]
[](https://prettier.io)
[](https://opensource.org/licenses/MIT)
# Sendle Node.js library
In order to use this library, you need to have an account on . After registering, you will need the application credentials for your app.
## Supported platforms
This SDK supports **Node.js** version 14+.
We test the library against a selection of Node.js versions which we update over time. Please refer to [main.yml](https://github.com/gomah/sendle-node/blob/main/.github/main.yml) for the set of versions that are currently tested with CI.
If you find any compatibility issues, please [raise an issue](https://github.com/gomah/sendle-node/issues/new) in the repository.
## Installation
You need to be running at least Node.js 14 to use this library.
```bash
$ yarn add sendle-node
```
### Create a client
```ts
import { SendleClient } from 'sendle-node';
const client = new SendleClient({
sendleId: 'yourSendleId',
apiKey: 'yourApiKey',
sandbox: true, // default to false
gotOptions: {}, // See https://github.com/sindresorhus/got#api
});
```
See the [docs](https://sendle-node.vercel.app) for usage reference.
## Development
1. Clone this repository
2. Install dependencies using `yarn install` or `npm install`
3. Build the module using `yarn build` or `npm run build`
4. Start development server using `yarn start` or `npm run start`
## 📑 License
[MIT License](./LICENSE)
[npm-version-src]: https://img.shields.io/npm/dt/sendle-node.svg?style=flat-square
[npm-version-href]: https://npmjs.com/package/sendle-node
[npm-downloads-src]: https://img.shields.io/npm/v/sendle-node/latest.svg?style=flat-square
[npm-downloads-href]: https://npmjs.com/package/sendle-node
[david-dm-src]: https://david-dm.org/gomah/sendle-node/status.svg?style=flat-square
[david-dm-href]: https://david-dm.org/gomah/sendle-node