Sha256: 949bf220fe5ef8f9e785ad04ec277e4ccab5f224078a7e00acd5e14ad02692a1
Contents?: true
Size: 592 Bytes
Versions: 1
Compression:
Stored size: 592 Bytes
Contents
#!/usr/bin/env ruby # frozen_string_literal: true require "open-uri" require "json" domains = JSON.parse(open("https://raw.githubusercontent.com/ivolo/disposable-email-domains/master/index.json").read) domains += JSON.parse(open("https://raw.githubusercontent.com/andreis/disposable-email-domains/master/domains.json").read) domains += open("https://raw.githubusercontent.com/FGRibreau/mailchecker/master/list.txt").read.lines.map(&:chomp) domains.map!(&:downcase) domains.uniq! domains.sort! File.open("./data/disposable.json", "w") do |file| file << JSON.pretty_generate(domains) end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
validators-3.0.3 | bin/sync-disposable-hostnames |