Skip to content

Commit

Permalink
Remove bower and component support
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Parisot committed Feb 13, 2017
1 parent 648cedc commit 2831a96
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 67 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ logs
results

node_modules
bower_components
coverage*
.idea
.nyc_output
Expand Down
1 change: 0 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ logs
results

node_modules
bower_components
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.

0 comments on commit 2831a96

Please sign in to comment.