tmplib

2.0.1 • Public • Published

TmpLib

Installation

npm install tmplib

Example:

##TmpMail

const { TmpMail } = require('tmplib');
const mail = new TmpMail();
mail.getRandomMail(console.log, 10);
mail.getRandomDomain(console.log); 
mail.createTmpMail("tmplib", email=>{
	mail.getListMails(email, list=>{
		console.log(list);
	})
});

##TmpSMS

const { TmpSMS } = require('tmplib');
const sms = new TmpSMS();
sms.getNumbers((i)=>{
	console.log(i) // list of numbers 50+
	sms.getSMSListener(i.numbers[0], console.log);
	sms.getSMSList(i.numbers[0], console.log);
});

##Ngrok

const { Ngrok } = require('tmplib');
Ngrok.create({addr: 8080, proto: "http", region: "eu", auth: "blablabla"}, async (error, url)=>{
	if(error)
		console.error(error)
	console.log(url);
	await Ngrok.kill();
});

Functions

   TmpMail: 
	   getRandomDomain // return list of all domains
	   createTmpMail // create own mail with username and random domain
	   getListMails // list of send Mails

   TmpSMS:
	   getNumbers // list of all numbers 50+ 
	   <---- for this func is need example: { n: "1234535", c: "France" } --->
		getSMSListener // listener for new sms can be use in loop 
		getSMSList // list of send sms to this number

   Ngrok:
	   create // creating tunnel required options
	   kill // kill command
	   options:
	      addr: // PORT
	      proto: // type http, tcp (tested)
	      auth: // Ngrok Token
	      config: // ngrok.yml full path ex: /root/.config/ngrok/ngrok.yml or C:/ngrok/ngrok.yml
	      bin: // binar file full path ex: /root/app/ngrok or C:/User/someone/ngrok.exe

Package Sidebar

Install

npm i tmplib

Weekly Downloads

1

Version

2.0.1

License

ISC

Unpacked Size

37.8 MB

Total Files

8

Last publish

Collaborators

  • ivankyosev21