Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/anandchowdhary/edumail

🎓 Identify educational emails for academic discounts
https://github.com/anandchowdhary/edumail

domain education email typescript utility

Last synced: 3 months ago
JSON representation

🎓 Identify educational emails for academic discounts

Awesome Lists containing this project

README

        

# 🎓 Edumail

[![Travis CI](https://img.shields.io/travis/AnandChowdhary/edumail.svg)](https://travis-ci.org/AnandChowdhary/edumail)
[![Coverage](https://img.shields.io/coveralls/github/AnandChowdhary/edumail.svg)](https://coveralls.io/github/AnandChowdhary/edumail)
[![GitHub](https://img.shields.io/github/license/anandchowdhary/edumail.svg)](https://github.com/AnandChowdhary/edumail/blob/master/LICENSE)
![Vulnerabilities](https://img.shields.io/snyk/vulnerabilities/github/AnandChowdhary/edumail.svg)
[![Minzipped size](https://img.shields.io/bundlephobia/minzip/edumail.svg)](https://www.npmjs.com/package/edumail)
[![NPM version](https://img.shields.io/npm/v/edumail.svg)](https://www.npmjs.com/package/edumail)
[![Types](https://img.shields.io/npm/types/edumail.svg)](https://www.npmjs.com/package/edumail)

Edumail helps you identify educational emails for academic discounts.

It relies upon [JetBrains/swot](https://github.com/JetBrains/swot) to get educational email information.

## ⭐ Getting started

Install Edumail as a dependency:

```bash
npm install edumail
```

Then import and use the functions you need:

```js
import { isEducational } from "edumail";

const isEducationalEmail = await isEducational("[email protected]");
// returns false
```

You can also use promises:

```js
isEducational("[email protected]").then(info => {
console.log(info); // returns true
}).catch(error => {})
```

There are also functions to identify domains:

```js
import { isBlacklisted, isEducationalDomain } from "edumail";

const blacklisted = await isBlacklisted("[email protected]"); // true
const educational = await isEducationalDomain("[email protected]"); // true
```

## 📝 License

MIT