@zce/create-nm
Version:
A scaffolding tools for creating node modules.
129 lines (92 loc) • 3.38 kB
Markdown
<% if (features.includes('test')) { %>
[![Build Status][actions-img]][actions-url]
[![Coverage Status][codecov-img]][codecov-url]<% } %>
[![License][license-img]][license-url]
[![NPM Downloads][downloads-img]][downloads-url]
[![NPM Version][version-img]][version-url]
[![Dependency Status][dependency-img]][dependency-url]
[![devDependency Status][devdependency-img]][devdependency-url]
[![Code Style][style-img]][style-url]
> <%= description %>
```shell
$ npm install <%= name %>
$ yarn add <%= name %>
```
<!-- TODO: Introduction of Usage -->
```javascript
const <%= _.camelCase(name) %> = require('<%= name %>')
const result = <%= _.camelCase(name) %>('w')
// result => 'w@zce.me'
```
<!-- TODO: Introduction of API -->
- Type: `string`
- Details: name string
- Type: `string`
- Details: host string
- Default: `'zce.me'`<% if (features.includes('cli')) { %>
<!-- TODO: Introduction of CLI -->
Use npx:
```shell
$ npx <%= name %> <input> [options]
```
Globally install:
```shell
$ npm install <%= name %> -g
$ yarn global add <%= name %>
```
```shell
$ <%= name %> --help
<%= name %>/0.1.0
Usage:
$ <%= name %> <input>
Commands:
<input> Sample cli program
For more info, run any command with the `--help` flag:
$ <%= name %> --help
Options:
--host <host> Sample options
-h, --help Display this message
-v, --version Display version number
Examples:
$ <%= name %> w --host zce.me
```<% } %>
- [zce/caz](https://github.com/zce/caz) - A simple yet powerful template-based Scaffolding tools.
1. **Fork** it on GitHub!
2. **Clone** the fork to your own machine.
3. **Checkout** your feature branch: `git checkout -b my-awesome-feature`
4. **Commit** your changes to your own branch: `git commit -am 'Add some feature'`
5. **Push** your work back up to your fork: `git push -u origin my-awesome-feature`
6. Submit a **Pull Request** so that we can review your changes.
> **NOTE**: Be sure to merge the latest from "upstream" before making a pull request!
[<%= license %>](LICENSE) © [<%= author %>](<%= url %>)
<% if (features.includes('test')) { %>
[]: https://img.shields.io/github/workflow/status/<%= github %>/<%= name %>/CI
[]: https://github.com/<%= github %>/<%= name %>/actions
[]: https://img.shields.io/codecov/c/github/<%= github %>/<%= name %>
[]: https://codecov.io/gh/<%= github %>/<%= name %><% } %>
[]: https://img.shields.io/github/license/<%= github %>/<%= name %>
[]: https://github.com/<%= github %>/<%= name %>/blob/master/LICENSE
[]: https://img.shields.io/npm/dm/<%= name %>
[]: https://npm.im/<%= name %>
[]: https://img.shields.io/npm/v/<%= name %>
[]: https://npm.im/<%= name %>
[]: https://img.shields.io/david/<%= github %>/<%= name %>
[]: https://david-dm.org/<%= github %>/<%= name %>
[]: https://img.shields.io/david/dev/<%= github %>/<%= name %>
[]: https://david-dm.org/<%= github %>/<%= name %>?type=dev
[]: https://img.shields.io/badge/code_style-standard-brightgreen
[]: https://standardjs.com