Socket
Socket
Sign inDemoInstall

onesecmail-api

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    onesecmail-api

Wrapper for 1secmail.com


Version published
Weekly downloads
0
Maintainers
1
Install size
5.70 kB
Created
Weekly downloads
 

Readme

Source

onesecmail-api

Wrapper for 1secmail.com

Table of Contents

  • onesecmail

Usage

For Node.js

Install using:

npm install onesecmail-api --save

WARNING

this module require nodejs ver ^18.7.0

const onesecmailApi = require('onesecmail-api');

(async () => {
    const { mail, event } = await onesecmailApi()
    console.log(mail)
    event.on('newMsg', console.log)
})()

//Event response ->
{
    id: 10561939,
    sender: 'fazriloke18@gmail.com',
    subject: 'Hello World',
    date: '2023-04-30T04:16:42.000Z',
    msgBody: '<div dir="ltr">Whats up... NodeJS</div>\n',
    msgText: 'Whats up... NodeJS\n',
    attachments: [
        {
            fileName: 'Vector.png',
            fileSize: 207,
            fileContentType: 'image/png',
            fileUrl: 'https://www.1secmail.com/api/v1/?action=download&login=undefined&domain=undefined&id=10561939&file=Vector.png'
        }
    ]
}

Keywords

FAQs

Last updated on 30 Apr 2023

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