An open API service indexing awesome lists of open source software.

https://github.com/faker-javascript/domain

Domain package provides functionality to generate a fake domain value.
https://github.com/faker-javascript/domain

Last synced: 2 months ago
JSON representation

Domain package provides functionality to generate a fake domain value.

Awesome Lists containing this project

README

        

Domain


Domain package provides functionality to generate a fake domain value.


Version node-current License

## Install

npm
```
npm install @fakerjs/domain --save-dev
```

yarn
```
yarn add @fakerjs/domain -D
```

## Usage

```js
import domain from '@fakerjs/domain';

domain();
//=> rad.com

domain({tld: 'rad.com'});
//=> totally.rad.com
```

## Tests

Run tests

```
npm run test
```

## License
[The MIT License (MIT)](https://github.com/faker-javascript/domain/blob/master/LICENSE)
Copyright (c) [Sergey Romanenko](https://github.com/Awilum)