Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@fakerjs/url

faker-javascript14.2kMIT1.0.0TypeScript support: included

Url package provides functionality to generate a fake url value.

readme

Url

Url package provides functionality to generate a fake url value.

Version node-current License

Install

$ npm install --save @fakerjs/url

Usage

import url from '@fakerjs/url';

url();
//=> http://rad.com

url({protocol: 'https'});
//=> https://rad.com

url({protocol: 'https', tld: 'rad.com'});
//=> https://totally.rad.com

Tests

Run tests

npm run test

License

The MIT License (MIT) Copyright (c) Sergey Romanenko