New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

text-cli

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

text-cli

send text messages

  • 0.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Text

Send text messages using the command line. Supports SMS (via Twilio) and WhatsApp.

Install

npm install text-cli

Use

Send an SMS:

node text --service twilio --to +12125556666 --message 'hello world'

Send a WhatsApp message:

node text --service whatsapp --to +12125556666 --message 'hello world'

Setup

This tool requires setup before you can use it. The configuration file is located in ~/.textrc.json by default and is expected to have a section per service provider. A skeleton file is provided and looks like this:

{
  "twilio": {
    "number": "NUMBER",
    "accountSID": "ACCOUNT SID",
    "authToken": "AUTH TOKEN"
  },
  "whatsapp": {
    "ccode": "COUNTRY CODE",
    "msisdn": "NUMBER",
    "username": "USERNAME",
    "password": "PASSWORD"
  }
}

Read below on setting up for the different providers.

SMS (Twilio)

You should have a Twilio account. Once you have your number (say, +12125556666), Account SID, and Auth Token, you should put them in the twilio section of the configuration file.

WhatsApp

You should have a registered phone number. Put your country code, phone number without the leading + sign ("msisdn"), username, and password in the whatsapp section of the configuration file.

Contributing

This project follows the "OPEN Open Source" philosophy. If you submit a pull request and it gets merged you will most likely be given commit access to this repository.

License

ISC.

Keywords

FAQs

Package last updated on 21 May 2015

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc