Gathering detailed insights and metrics for @avidian/semaphorejs
Gathering detailed insights and metrics for @avidian/semaphorejs
Gathering detailed insights and metrics for @avidian/semaphorejs
Gathering detailed insights and metrics for @avidian/semaphorejs
npm install @avidian/semaphorejs
Typescript
Module System
Node Version
NPM Version
TypeScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
2 Stars
12 Commits
1 Watchers
1 Branches
1 Contributors
Updated on Apr 09, 2022
Latest Version
1.0.7
Package Id
@avidian/semaphorejs@1.0.7
Unpacked Size
29.48 kB
Size
9.08 kB
File Count
7
NPM Version
8.1.1
Node Version
16.13.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
A wrapper for accessing the Semaphore SMS API
Note: This only works on nodejs, using this on the browser will not work.
npm
1npm install @avidian/semaphorejs
yarn
1yarn add @avidian/semaphorejs
Sending Messages
1import { Client } from '@avidian/semaphorejs'; 2 3const client = new Client('your api key', {/* options */}); 4 5const response = await client.send('09991234567', 'your message'); 6 7// multiple recipients 8const recipients = ['09991234567', '09997654321']; 9const response = await client.send(recipients, 'your message');
1[ 2 { 3 "message_id": 1234567, 4 "user_id": 99556, 5 "user": "user@your.org", 6 "account_id": 90290, 7 "account": "Your Account Name", 8 "recipient": "09991234567", 9 "message": "The message you sent", 10 "sender_name": "SEMAPHORE", 11 "network": "Globe", 12 "status": "Queued", 13 "type": "Single", 14 "source": "Api", 15 "created_at": "2016-01-01 00:01:01", 16 "updated_at": "2016-01-01 00:01:01" 17 } 18]
Retrieving Messages
1const response = await client.messages({ limit: 100, page: 1 });
Supported filters for retrieving messages
1const options = { 2 limit: 100, 3 page: 1, 4 sendername: 'SEMAPHORE', 5 startDate: '2016-01-01', 6 endDate: '2016-02-01', 7 network: 'globe', 8 status: 'success', 9};
Retrieving account information
1const response = await client.account();
1{ 2 "account_id": 12345, 3 "account_name": "Your Organization", 4 "status": "Active", 5 "credit_balance": 5000 6}
Retrieve users
1const response = await client.users();
1[ 2 { 3 "user_id": 12345, 4 "email": "owner@your.org", 5 "role": "Owner" 6 }, 7 { 8 "user_id": 54321, 9 "email": "someguy@your.org", 10 "role": "User" 11 } 12]
Sender names
1const response = await client.senderNames();
1[ 2 { 3 "name":"Semaphore", 4 "status":"Active", 5 "created":"2016-01-01 00:00:01" 6 }, 7 { 8 "name":"Kickstart", 9 "status":"Active", 10 "created":"2016-01-01 00:00:01"" 11 } 12]
Transactions
1const response = await client.transactions();
This library is open-sourced software licensed under the MIT license.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 0/12 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
17 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More