university-domains

List of allowed university domains

Usage no npm install needed!

<script type="module">
  import universityDomains from 'https://cdn.skypack.dev/university-domains';
</script>

README

University Domains and Names List

A JSON list that contains domains, names and countries of most of the universities of the world.

It is very useful if you are building a web service for students.

You can easily create a validation script that checks the email domain. You can also automatically generate a user's country and university by looking their emails.

NOTE: Some university use a format like '[user]@[department].[domain]', but this list only contains the [domain] portion. For example, an email address might be [student]@cs.usc.edu, and this list will contain 'usc.edu', the domain for the University of Southern California. Take this into consideration if using this list for email address validation.

Feel free to update the list.

Example Bundle

{
    "web_page": "http://www.sabanciuniv.edu/",
    "country": "Turkey",
    "domain": "sabanciuniv.edu",
    "name": "Sabancı University"
}

Usage

Add to your project:

npm install node-university-domains --save

Query the list of university/college domains:

var uniDomains = require('node-university-domains');

uniDomains.find('middlebury.edu', 'domain');
//or
uniDomains.find('middlebury.edu');
//returns
/*{
    "web_page": "http://www.middlebury.edu",
    "country": "USA",
    "domain": "middlebury.edu",
    "name": "Middlebury College"
}*/