Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop Bower and Components support #90

Merged
merged 1 commit into from
Feb 14, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ logs
results

node_modules
bower_components
npm-debug.log
.nyc_output
coverage*
.idea
.nyc_output
32 changes: 11 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,35 +1,25 @@
# tld.js [![Build Status](https://secure.travis-ci.org/oncletom/tld.js.png?branch=master)](http://travis-ci.org/oncletom/tld.js)

[![browser support](https://ci.testling.com/oncletom/tld.js.png)](https://ci.testling.com/oncletom/tld.js)
# tld.js [![Build Status](https://secure.travis-ci.org/oncletom/tld.js.svg?branch=master)](http://travis-ci.org/oncletom/tld.js)

> `tld.js` is JavaScript API to work against complex domain names, subdomains and URIs.

It answers with accuracy to questions like *what is the domain/subdomain of `mail.google.com` and `a.b.ide.kyoto.jp`?*

`tld.js` is fully tested, works in Node.js and in the browser, with or without AMD.
Its database keeps up to date thanks to Mozilla's [public suffix list](http://publicsuffix.org/list/) to have and keep up to date with domain names.
A database of valid Top Level Domains is kept up to date thanks to Mozilla's [public suffix list](http://publicsuffix.org/list/).

Thanks Mozilla!

# Install

<table>
<thead>
<tr>
<th>npm</th>
<th>bower</th>
<th>component</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>npm install --save tldjs</code></td>
<td><code>bower install --save tld</code></td>
<td><code>component install tld</code></td>
</tr>
</tbody>
</table>
```bash
# With bundled Top Level Domains list
npm install --save tldjs

# Update Top Level Domains list during install
npm install --save tldjs --tldjs-update-rules
```

The latter is useful if this package has not been published for a while on _npm_.

# Using It

Expand Down Expand Up @@ -58,7 +48,7 @@ You can build your own by using [browserify](http://browserify.org/):

```bash
npm install --save tldjs
browserify -s tld -r node_modules/tldjs/index.js -o tld.js
browserify -s tld -r tldjs -o tld.js
```

An [UMD module](https://github.com/umdjs/umd) will be created as of `tld.js`.
Expand Down
30 changes: 0 additions & 30 deletions bower.json

This file was deleted.

14 changes: 0 additions & 14 deletions component.json

This file was deleted.