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

puretext

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

puretext

Use PureText.us API to send and receive texts

  • 0.1.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
55
increased by175%
Maintainers
1
Weekly downloads
 
Created
Source

Synopsis

This package simplifies sending a text through PureText texting API

Code Example


var puretext = require('puretext');

var text = {
  fromNumber: '+1XXXXXXXXXX', // From number is the number you will buy from your admin dashboard
  toNumber: '+1XXXXXXXXXX', // To Number is the number you will be sending the text to
  content: 'Sending SMS using Node.js', // Text Content
  apiToken: 'XXXXXX' //Sign up for an account to get an API Token
};

puretext.send(text, function (err, response) {
  if (err) {
    console.log('there was an error',err)
  }
  else {
    console.log('there was no error',response)
  }
})

Motivation

Even though PureText uses a simple get request. Many users are using different modules to achieve an HTTP get like 'request' or 'superagent' or even native node.js http.request module. This provides a standard

Installation

npm install puretext --save

License

MIT

Keywords

FAQs

Package last updated on 03 Dec 2016

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