# create-autots-lib

> A common init tool for typescript libs under the scrope - @autots

Latest version **0.3.0** (published 2020-06-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install create-autots-lib
pnpm add create-autots-lib
yarn add create-autots-lib
bun add create-autots-lib
```

Provides the command `create-autots-lib`.

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.3.0 |
| Published | 2020-06-19 |
| First published | 2020-06-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=10 |
| Dependencies | 6 |
| Unpacked size | 20.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Magn Mah |
| Maintainers | magnnus |
| Keywords | CLI, TypeScript Lib |

## Links

- npm: https://www.npmjs.com/package/create-autots-lib
- Repository: https://github.com/magnnus/create-autots-lib
- Homepage: https://github.com/magnnus/create-autots-lib/tree/master/packages/create-autots-lib
- Issues: https://github.com/magnnus/create-autots-lib/issues
- npm.io page: https://npm.io/package/create-autots-lib

## Dependencies (6)

- [ncp](https://npm.io/package/ncp.md) ^2.0.0
- [chalk](https://npm.io/package/chalk.md) ^4.0.0
- [execa](https://npm.io/package/execa.md) ^4.0.2
- [listr](https://npm.io/package/listr.md) ^0.14.3
- [inquirer](https://npm.io/package/inquirer.md) ^7.1.0
- [commander](https://npm.io/package/commander.md) ^5.1.0

## 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

- 0.3.0 (latest) — 2020-06-19
- 0.2.0 — 2020-06-18
- 0.1.1 — 2020-06-11
- 0.1.1-alpha.0 — 2020-06-11
- 0.1.0 — 2020-06-11
- 0.0.4-alpha.5 — 2020-06-10
- 0.0.4-alpha.4 — 2020-06-09
- 0.0.4-alpha.1 — 2020-06-09
- 0.0.4-alpha.0 — 2020-06-09
- 0.0.3-alpha.0 — 2020-06-09
- 0.0.2-alpha.0 — 2020-06-08
- 0.0.1-alpha.1 — 2020-06-07
- 0.0.1-alpha.0 — 2020-06-06

## README

# create-autots-lib

A CLI Tool to Generate Basic TypeScript(Vanilla) Library.

## Usage

### Simplest Way - Recommended 

```
$ npx create-autots-lib target-lib-name
```

This will create a new dir named as `target-lib-name`.

or 

```
# Using Npm:
$ npm init autots-lib target-lib-name

# Using Yarn:
$ yarn create autots-lib target-lib-name
```

And you can pass a option  `--yes / -y` to skip questions asking, and if follow this, the CLI will create a `ts-class` lib.

### Install Globally

```
# Using Npm:
$ npm i create-autots-lib -g

# Using Yarn:
$ yarn global create-autots-lib
```

and then

```
$ create-autots-lib target-lib-name
```

**Note:** We recommend that the `target-lib-name` should be lowercase and also can use `-` to split the words. When followed that, the bundled UMD module lib can get a global variable `AutoTS.TargetLibName`.

Behind that, we use `const { pascalCase } = require('change-case');` to parse the `name` of `package.json` - ignore the scope name (default is `@autots`).

## Template

Now the tpls is download with this CLI tool, so maybe someday the tpls is outdated. We will load tpls from the internet in the future.

### ts-class tpl

The target is to generate a `class-based` library. When used, Users need to `new Lib()` or `new AutoTs.Lib()`.

### ts-utils tpl(in the future, Now is in developing)

The target is to generate a library with *some functions*.

## TODOs

- ts-utils template

## License

MIT

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