# tnsg

> A NativeScript CLI Generator (Page, Service, Class)

Latest version **0.1.8** (published 2017-05-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install tnsg
pnpm add tnsg
yarn add tnsg
bun add tnsg
```

Provides the command `tnsg`.

## 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.1.8 |
| Published | 2017-05-01 |
| First published | 2017-05-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 8 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Slayug |
| Maintainers | slayug |
| Keywords | nativescript-angular, nativescript, generator |

## Links

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

## Dependencies (8)

- [write](https://npm.io/package/write.md) ^0.3.3
- [colors](https://npm.io/package/colors.md) ^1.1.2
- [prompt](https://npm.io/package/prompt.md) ^1.0.0
- [argparse](https://npm.io/package/argparse.md) ^1.0.9
- [read-file](https://npm.io/package/read-file.md) ^0.2.0
- [file-exists](https://npm.io/package/file-exists.md) ^3.0.2
- [prompt-sync](https://npm.io/package/prompt-sync.md) ^4.1.4
- [prompt-sync-history](https://npm.io/package/prompt-sync-history.md) ^1.0.1

## Recent versions

- 0.1.8 (latest) — 2017-05-01
- 0.1.6 — 2017-05-01
- 0.1.4 — 2017-05-01
- 0.1.31 — 2017-05-01
- 0.1.3 — 2017-05-01
- 0.1.2 — 2017-05-01
- 0.1.0 — 2017-05-01
- 0.0.1 — 2017-05-01

## README

# tnsg
**A NativeScript CLI Generator**

----------

Generate quickly your pages, services, class..

## Installation
```bash
npm install -g tnsg
```
## Generating Pages, Service, Class (Angular)

Scaffold  | Usage
---       | ---
`Page` | `tnsg -p my-page`
`Service` | `tnsg -s my-service`
`Class` | `tnsg -c my-class`

### Examples:
`tnsg -p pages/login` will generate:
 - ./app/pages/login/login.android.css
 - ./app/pages/login/login.ios.css
 - ./app/pages/login/login-common.css
 - ./app/pages/login/login.component.ts
 - ./app/pages/login/login.html
 and link the component in *app.module.ts*

`tnsg -p pages/user-detail` will generate:
 - ./app/pages/user-detail/user-detail.android.css
 - ./app/pages/user-detail/user-detail.ios.css
 - ./app/pages/user-detail/user-detail-common.css
 - ./app/pages/user-detail/user-detail.component.ts
 - ./app/pages/user-detail/user-detail.html
 and link the component in *app.module.ts*

 ## Generating View {N}

 Scaffold  | Usage
 ---       | ---
 `View` | `tnsg -vi my-view`

### Examples:
`tnsg -vi views/user` will generate:
 - ./app/views/user/user.css
 - ./app/views/user/user.js
 - ./app/views/user/user.xml

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