# create-new-template

> Script to import project templates from GitHub repos

Latest version **1.1.0** (published 2022-04-18) · SEE LICENCE IN LICENCE license · 0 weekly downloads

## Install

```sh
npm install create-new-template
pnpm add create-new-template
yarn add create-new-template
bun add create-new-template
```

Provides the command `create-new-template`.

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2022-04-18 |
| First published | 2022-04-17 |
| Weekly downloads | 0 |
| License | SEE LICENCE IN LICENCE |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 5 |
| Unpacked size | 41.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | kevinmarquesp |
| Maintainers | kevinmarquesp |

## Links

- npm: https://www.npmjs.com/package/create-new-template
- Repository: https://github.com/kevinmarquesp/use-template
- Homepage: https://github.com/kevinmarquesp/use-template#readme
- Issues: https://github.com/kevinmarquesp/use-template/issues
- npm.io page: https://npm.io/package/create-new-template

## Dependencies (5)

- [gar](https://npm.io/package/gar.md) ^1.0.4
- [chalk](https://npm.io/package/chalk.md) ^5.0.1
- [shelljs](https://npm.io/package/shelljs.md) ^0.8.5
- [inquirer](https://npm.io/package/inquirer.md) ^8.2.2
- [node-fetch](https://npm.io/package/node-fetch.md) ^3.2.3

## Recent versions

- 1.1.0 (latest) — 2022-04-18
- 1.0.3 — 2022-04-17
- 1.0.2 — 2022-04-17
- 1.0.0 — 2022-04-17

## README

<div align="center">
    <h1>✨ <code>use-template</code> ✨</h1>
       <img src="https://img.shields.io/badge/Node.js-43853D?style=for-the-badge&logo=node.js&logoColor=white"></img>
       <img src="https://img.shields.io/badge/JavaScript-323330?style=for-the-badge&logo=javascript&logoColor=F7DF1E"></img>
</div>
A small and simple tool to clone GitHub repositories and use them as template. When you choose a repo, you can choose which branch you want to use as a template. so you can create a single repository for all your project templates and import these with this app.

<br>

`[ Image here... ]`

<br>


## Instalation

```bash
npm i -g create-new-template # with npm
yarn global add create-new-template # Or, if you are using yarn
```

## Usage

 you don't need to give arguments to the command, but, if you don't, it will ask where is the templates repo, which branch you wanna to use and the project's name (command will not be asked).
```yml
Usage: use-template [PROJECT NAME] -r [USER/REPO] -b [BRANCH] -c [COMMAND]
  or: use-template
A small and simple tool to clone GitHub repositories and use them as template.

      --repo -r       Github repository, you need to specify. Like that: example/examplerepo
      --branch -b     Branch of the repository that have your template. (e.g. main, master, dev...)
      --command -c    Command to run after cloning the repo and before initialize that.
```
Usage example:

```shell
use-template [PROJECT NAME] -r [USER/REPO] -b [BRANCH] -c [COMMAND]
```
(you don't have to follow any pattern.)


## Todo

- [X] Improve my english in README...
- [X] Publish on NPM


##

![](https://img.shields.io/badge/GNU_General_Public_Licence_v3.0-E58080?style=for-the-badge&logo=bookstack&logoColor=white)

Thanks for reading the project description! `<3`

[👆 Back to top](#top)

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