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

@fnando/email-provider-info

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fnando/email-provider-info - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

sample.png

8

CHANGELOG.md

@@ -14,4 +14,12 @@ # Changelog

## v0.0.2 - 2022-01-18
- [Added] Microsoft Outlook detection.
- [Added] Hey detection.
- [Added] Yandex detection.
- [Added] Tutanota detection.
- [Added] GMX detection.
## v0.0.1 - 2022-01-15
- Initial release.

2

package.json
{
"name": "@fnando/email-provider-info",
"version": "0.0.1",
"version": "0.0.2",
"description": "Find email provider service based on the email address.",

@@ -5,0 +5,0 @@ "author": {

@@ -5,5 +5,5 @@ # email-provider-info

[![Tests](https://github.com/fnando/email-provider-info/workflows/node-tests/badge.svg)](https://github.com/fnando/email-provider-info)
[![NPM](https://img.shields.io/npm/v/email-provider-info.svg)](https://npmjs.org/package/email-provider-info)
[![NPM](https://img.shields.io/npm/dt/email-provider-info.svg)](https://npmjs.org/package/email-provider-info)
[![Tests](https://github.com/fnando/email-provider-info/workflows/js-tests/badge.svg)](https://github.com/fnando/email-provider-info)
[![NPM](https://img.shields.io/npm/v/@fnando/email-provider-info.svg)](https://npmjs.org/package/@fnando/email-provider-info)
[![NPM](https://img.shields.io/npm/dt/@fnando/email-provider-info.svg)](https://npmjs.org/package/@fnando/email-provider-info)

@@ -37,2 +37,7 @@ ## Installation

The idea behind this package is enabling something like this, where users can go
to their email service provider with just one click.
![Example: Show button that goes straight to Gmail](https://raw.githubusercontent.com/fnando/email-provider-info/main/sample.png)
## Maintainer

@@ -39,0 +44,0 @@

@@ -70,2 +70,56 @@ // eslint-disable-next-line @fnando/consistent-import/consistent-import

});
test("returns info for outlook", () => {
let provider = getEmailProvider("john@outlook.com");
expect(provider.name).toEqual("Outlook");
expect(provider.url).toEqual("https://outlook.live.com/mail/");
provider = getEmailProvider("john@hotmail.com");
expect(provider.name).toEqual("Outlook");
expect(provider.url).toEqual("https://outlook.live.com/mail/");
});
test("returns info for hey", () => {
const provider = getEmailProvider("john@hey.com");
expect(provider.name).toEqual("Hey");
expect(provider.url).toEqual("https://app.hey.com/");
});
test("returns info for yandex", () => {
const provider = getEmailProvider("john@yandex.com");
expect(provider.name).toEqual("Yandex");
expect(provider.url).toEqual("https://mail.yandex.com/");
});
test("returns info for tutanota", () => {
const provider = getEmailProvider("john@tutanota.com");
expect(provider.name).toEqual("Tutanota");
expect(provider.url).toEqual("https://mail.tutanota.com/");
});
test("returns info for gmx", () => {
const provider = getEmailProvider("john@gmx.com");
expect(provider.name).toEqual("GMX");
expect(provider.url).toEqual("https://navigator-bs.gmx.com/mail");
});
test("returns info for uol", () => {
const provider = getEmailProvider("john@uol.com.br");
expect(provider.name).toEqual("UOL");
expect(provider.url).toEqual("https://email.uol.com.br/");
});
test("returns info for bol", () => {
const provider = getEmailProvider("john@bol.com.br");
expect(provider.name).toEqual("BOL");
expect(provider.url).toEqual("https://email.bol.uol.com.br/");
});
});

@@ -200,2 +200,33 @@ export type EmailProvider = {

},
{
name: "Outlook",
url: "https://outlook.live.com/mail/",
hosts: ["outlook.com", "hotmail.com"],
},
{
name: "Hey",
url: "https://app.hey.com/",
hosts: ["hey.com"],
},
{
name: "Yandex",
url: "https://mail.yandex.com/",
hosts: ["yandex.com"],
},
{
name: "Tutanota",
url: "https://mail.tutanota.com/",
hosts: [
"tutanota.com",
"tutanota.de",
"tutamail.com",
"tuta.io",
"keemail.me",
],
},
{
name: "GMX",
url: "https://navigator-bs.gmx.com/mail",
hosts: ["gmx.com", "gmx.us"],
},
];

@@ -202,0 +233,0 @@

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