@segment/top-domain

WebJar for @segment/top-domain

Лицензия

Лицензия

MIT
Категории

Категории

Doma Данные ORM
Группа

Группа

org.webjars.npm
Идентификатор

Идентификатор

segment__top-domain
Последняя версия

Последняя версия

3.0.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

@segment/top-domain
WebJar for @segment/top-domain
Ссылка на сайт

Ссылка на сайт

https://www.webjars.org
Система контроля версий

Система контроля версий

https://github.com/segmentio/top-domain

Скачать segment__top-domain

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.webjars.npm/segment__top-domain/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>segment__top-domain</artifactId>
    <version>3.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/segment__top-domain/
implementation 'org.webjars.npm:segment__top-domain:3.0.0'
// https://jarcasting.com/artifacts/org.webjars.npm/segment__top-domain/
implementation ("org.webjars.npm:segment__top-domain:3.0.0")
'org.webjars.npm:segment__top-domain:jar:3.0.0'
<dependency org="org.webjars.npm" name="segment__top-domain" rev="3.0.0">
  <artifact name="segment__top-domain" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='segment__top-domain', version='3.0.0')
)
libraryDependencies += "org.webjars.npm" % "segment__top-domain" % "3.0.0"
[org.webjars.npm/segment__top-domain "3.0.0"]

Зависимости

compile (2)

Идентификатор библиотеки Тип Версия
org.webjars.npm : component-cookie jar [1.1.2,2)
org.webjars.npm » component-url jar [0.2.1,0.3)

Модули Проекта

Данный проект не имеет модулей.

domain

CircleCI Codecov

Constructs possible levels from a url and attempts to set a cookie "." + domain for each, when it succeeds it returns the top level domain.

This only works on the domain itself, since it attempts to set a cookie.

Installation

$ npm install @segment/top-domain

API

var domain = require('top-domain');

assert('google.com' == domain('http://www.google.com'));
assert('google.co.uk' == domain('http://www.google.co.uk'));
assert('google.co.uk' == domain('http://google.co.uk'));
assert('github.com' == domain('http://gist.github.com/calvinfo/some_file'));
assert('' == domain('http://localhost:3000'));
assert('google.com' == domain('https://google.com:443/stuff'));
assert('' == domain('http://dev:3000'));
assert('' == domain('0.0.0.0'));
assert('' == domain('127.0.0.1'));
org.webjars.npm

Segment

Версии библиотеки

Версия
3.0.0