Socket
Socket
Sign inDemoInstall

semaphore.co-sms

Package Overview
Dependencies
5
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    semaphore.co-sms

semaphore.co api implementation for nodejs


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

Node semaphore.co-sms

NPM

Intro

This package just implements the API available for semaphore.co. They don't have one for nodejs.

Installation

npm install semaphore.co-sms

Environment File

  • create .env file
SEMAPHORE_API_KEY=apikey

Usage

const Semaphore = require('semaphore.co-sms');

let SendSMS = async () => {
	let obj = {
		apikey: apikey, // or you can put the api key in an .env file as SEMAPHORE_API_KEY
		number: '09123456789',
		message: `What's up madlang people?`,
		sendername: 'SEMAPHORE', // or the sendername you applied for
	};
	let response = await Semaphore.send(obj);
	console.log(response);
};

SendSMS();

Keywords

FAQs

Last updated on 27 Jul 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc