https://github.com/codecontinent/bd-sms-gateways
Unified BD SMS Providers client package for TypeScript / JavaScript ecosystem
https://github.com/codecontinent/bd-sms-gateways
bd-sms bd-sms-gateway bd-sms-gateways bun cloudflare-workers deno hacktoberfest node npm-package sms-client
Last synced: 3 months ago
JSON representation
Unified BD SMS Providers client package for TypeScript / JavaScript ecosystem
- Host: GitHub
- URL: https://github.com/codecontinent/bd-sms-gateways
- Owner: codecontinent
- License: mit
- Created: 2025-07-30T05:17:47.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-08-01T14:17:06.000Z (11 months ago)
- Last Synced: 2025-10-26T21:05:16.501Z (8 months ago)
- Topics: bd-sms, bd-sms-gateway, bd-sms-gateways, bun, cloudflare-workers, deno, hacktoberfest, node, npm-package, sms-client
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/@bdcode/sms
- Size: 103 KB
- Stars: 2
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# BD SMS Gateways
[](https://github.com/codecontinent/bd-sms-gateways/actions/workflows/release.yml)
## Getting Started
**Install Package**
```bash
# NPM
npm install @bdcode/sms
# PNPM
pnpm add @bdcode/sms
# Yarn
yarn add @bdcode/sms
# Bun
bun add @bdcode/sms
```
> [!NOTE]
> If you are using Deno, then follow the CDN (e.g. esm.sh) way
>
> ```ts
> // Example: Import via esm.sh CDN
> import { SmsGateway } from "https://esm.sh/@bdcode/sms";
> ```
**Example Usage**
> Using `SMSNetBD` adapter for this example.
```ts
const sms = new SmsGateway(
"sms-net-bd",
{ api_key: "" }
);
// Send SMS
await sms.client.sendSms({
to: "8801300112233",
msg: "Hello from SmsNetBD!"
// schedule: "2021-10-13 16:00:52", // can be scheduled
// sender_id: "YourSenderID", // uses sender-id/masking
// content_id: "YourContentID", // only for bulk-sms
});
// Get Balance
await sms.client.getBalance();
// Get Report
await sms.client.getReport("12345");
```
---
**SMS Providers we have covered so far:**
- ✔ [SMS-NET-BD](https://sms.net.bd)
- ⏳ [Bulk-SMS-Dhaka](https://bulksmsdhaka.com)
- 🔎 (Suggest us or propose & contribute)
Made with 💚 by @codecontinent/opensource team and contributors.