isPlainHostName.d.ts 418 B

123456789101112131415161718
  1. /**
  2. * True iff there is no domain name in the hostname (no dots).
  3. *
  4. * Examples:
  5. *
  6. * ``` js
  7. * isPlainHostName("www")
  8. * // is true.
  9. *
  10. * isPlainHostName("www.netscape.com")
  11. * // is false.
  12. * ```
  13. *
  14. * @param {String} host The hostname from the URL (excluding port number).
  15. * @return {Boolean}
  16. */
  17. export default function isPlainHostName(host: string): boolean;
  18. //# sourceMappingURL=isPlainHostName.d.ts.map