# generate-cname

> Generate the CNAME file for a web project. Is this necessary? No, not at all. A CNAME file is one line and takes a couple seconds to create. The point of this generator is to automate the creation of the CNAME file based on configuration settings, as a sm

Latest version **1.0.0** (published 2017-07-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install generate-cname
pnpm add generate-cname
yarn add generate-cname
bun add generate-cname
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2017-07-29 |
| First published | 2017-05-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=4 |
| Dependencies | 4 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Author | Jon Schlinkert |
| Maintainers | jonschlinkert |
| Keywords | boilerplate, build, cli, cli-app, cname, command-line, create, dev, development, framework, front, frontend, generate, generate-generator, generate-plugin, generategenerator, generateplugin, generator, init, initialize, new, plugin, project, projects, scaffold, scaffolder, scaffolding, template, templates, webapp, yeoman, yo |

## Links

- npm: https://www.npmjs.com/package/generate-cname
- Repository: https://github.com/generate/generate-cname
- Issues: https://github.com/generate/generate-cname/issues
- npm.io page: https://npm.io/package/generate-cname

## Dependencies (4)

- [is-valid-app](https://npm.io/package/is-valid-app.md) ^0.3.0
- [helper-prompt](https://npm.io/package/helper-prompt.md) ^1.3.1
- [prompt-confirm](https://npm.io/package/prompt-confirm.md) ^1.2.0
- [engine-handlebars](https://npm.io/package/engine-handlebars.md) ^0.8.2

## Alternatives

- [@salesforce/cli](https://npm.io/package/@salesforce/cli.md) — 389.7K weekly downloads
- [@mintlify/cli](https://npm.io/package/@mintlify/cli.md) — 208.9K weekly downloads
- [@grafana/e2e-selectors](https://npm.io/package/@grafana/e2e-selectors.md) — 128.7K weekly downloads
- [mintlify](https://npm.io/package/mintlify.md) — 112.0K weekly downloads
- [@intlayer/cli](https://npm.io/package/@intlayer/cli.md) — 22.8K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2017-07-29
- 0.1.0 — 2017-05-23

## README

# generate-cname [![NPM version](https://img.shields.io/npm/v/generate-cname.svg?style=flat)](https://www.npmjs.com/package/generate-cname) [![NPM monthly downloads](https://img.shields.io/npm/dm/generate-cname.svg?style=flat)](https://npmjs.org/package/generate-cname) [![NPM total downloads](https://img.shields.io/npm/dt/generate-cname.svg?style=flat)](https://npmjs.org/package/generate-cname) [![Linux Build Status](https://img.shields.io/travis/generate/generate-cname.svg?style=flat&label=Travis)](https://travis-ci.org/generate/generate-cname)

> Generate the CNAME file for a web project. Is this necessary? No, not at all. A CNAME file is one line and takes a couple seconds to create. The point of this generator is to automate the creation of the CNAME file based on configuration settings, as a small part of a larger build.

## Install

Install with [npm](https://www.npmjs.com/):

```sh
$ npm install --save generate-cname
```

## Usage

### CLI

**Install**

First install [generate](https://github.com/generate/generate) and this module either globally or locally:

```sh
$ npm install --global generate generate-cname
```

**Generate a CNAME file on demand**

The following command will prompt you for the URL to use, then will write a `CNAME` file to the cwd or specified `--dest`:

```sh
$ gen cname 
$ gen cname --dest ./foo
```

### Use as a plugin

You can add a `cname` task to your [generate](https://github.com/generate/generate) generator by adding the following line in `generator.js`:

```js
app.use(require('generate-cname'));
```

**Example**

Given you have a generator named `generate-foo`, you would run the following to generate a `cname` file:

```sh
$ gen foo:cname
```

You can also run the `cname` task from any other task in your generator, so that a cname file is automatically generated along with other files.

## About

### Contributing

Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).

### Building docs

_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_

To generate the readme, run the following command:

```sh
$ npm install -g verbose/verb#dev verb-generate-readme && verb
```

### Running tests

Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:

```sh
$ npm install && npm test
```

### Author

**Jon Schlinkert**

* [github/jonschlinkert](https://github.com/jonschlinkert)
* [twitter/jonschlinkert](https://twitter.com/jonschlinkert)

### License

Copyright © 2017, [Jon Schlinkert](https://github.com/jonschlinkert).
Released under the [MIT License](LICENSE).

***

_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.6.0, on July 29, 2017._

---
_Source: https://npm.io/package/generate-cname · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
