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

How to use tld.js in browser? #37

Closed
SunilAgrawal opened this issue Mar 27, 2014 · 2 comments
Closed

How to use tld.js in browser? #37

SunilAgrawal opened this issue Mar 27, 2014 · 2 comments

Comments

@SunilAgrawal
Copy link

Example shows there's a minified version, but I couldn't find it. Can you please point me to one, or instructions on how to build one myself.

Thanks, Sunil

@thom4parisot
Copy link
Owner

Hello!

The minified version is not versioned in git but it is available through the npm package.

npm install tldjs
tree node_modules/tldjs/dist/
node_modules/tldjs/dist/
├── rules-legacy.json
├── rules.json
├── tld.js
└── tld.min.js

If you install through bower or git, you will have to build it on your own:

bower install tld
cd bower_components/tld
npm install
npm run build
tree dist/
dist/
├── rules-legacy.json
├── rules.json
├── tld.js
└── tld.min.js

Let me know if it helps or not :-)

@thom4parisot
Copy link
Owner

Hello @SunilAgrawal,

just to let you know there is a browser ready version available here: http://wzrd.in/standalone/tldjs

You can consume the code with browserify by following the updated README#browser.

Let me know if you need some more help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants