LoginSignup
2
1

More than 5 years have passed since last update.

Route53 でとれるドメイン(TLD)の価格順リスト

Posted at

https://console.aws.amazon.com/route53/home#DomainRegistration からデータを取ってきます。

Fullscreen_2018_02_23_12_44.png

ソートしてprintするコードです。

domainlist.js
// @flow

import fs from 'fs'
import _ from 'lodash'

const text = fs.readFileSync(__dirname + '/domains.txt', 'utf8')
const res = text
    .trim()
    .split('\n')
    .map(line => {
        const m = line.match(/^(.*) - \$(.*)$/)
        if (!m) {
            return null
        }
        const [, domain, priceStr] = m
        const price = parseInt(priceStr, 10)
        return { domain, price }
    })
const domains = _.compact(res)
console.log(
    _.sortBy(domains, 'price')
        .map(v => `${v.domain} - $${v.price}`)
        .join('\n')
)

出力 (Full はここ)

.me.uk - $8
.co.uk - $9
.de - $9
.be - $9
.name - $9
.org.uk - $9
.uk - $9
.click - $10
.es - $10
.link - $10
.nl - $10
.pictures - $10
.net - $11
.com - $12
.org - $12
...

Peco
1__js-playground__babel-node___src_domain_index_js___peco__peco_.png

2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1