# a-transform-transformer

> Schematics to automatically add booleanAttribute to Angular's Input decorator

Latest version **1.2.1** (published 2023-10-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install a-transform-transformer
pnpm add a-transform-transformer
yarn add a-transform-transformer
bun add a-transform-transformer
```

Provides the command `a-transform-transformer`.

## 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.2.1 |
| Published | 2023-10-20 |
| First published | 2023-10-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 9.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Kevin Kreuzer |
| Maintainers | kreuzerk |
| Keywords | Angular, Schematics, JavaScript, NPM, Frontend |

## Links

- npm: https://www.npmjs.com/package/a-transform-transformer
- Repository: https://github.com/kreuzerk/a-transform-transformer
- Homepage: https://github.com/kreuzerk/a-transform-transformer#readme
- Issues: https://github.com/kreuzerk/a-transform-transformer/issues
- npm.io page: https://npm.io/package/a-transform-transformer

## Dependencies (4)

- [ora](https://npm.io/package/ora.md) ^7.0.1
- [args](https://npm.io/package/args.md) ^5.0.3
- [chalk](https://npm.io/package/chalk.md) ^5.3.0
- [ng-morph](https://npm.io/package/ng-morph.md) ^4.0.0

## Alternatives

- [@regle/core](https://npm.io/package/@regle/core.md) — 47.0K weekly downloads
- [typeof-arguments](https://npm.io/package/typeof-arguments.md) — 12.5K weekly downloads
- [@lokalise/projects-engine-contracts](https://npm.io/package/@lokalise/projects-engine-contracts.md) — 978 weekly downloads
- [@osjwnpm/nam-laboriosam-quibusdam](https://npm.io/package/@osjwnpm/nam-laboriosam-quibusdam.md) — 70 weekly downloads
- [@oridune/validator](https://npm.io/package/@oridune/validator.md) — 16 weekly downloads

## Recent versions

- 1.2.1 (latest) — 2023-10-20
- 1.2.0 — 2023-10-20
- 1.1.0 — 2023-10-20
- 1.0.0 — 2023-10-20

## README

# A-transformer-transformer

<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->

[![All Contributors](https://img.shields.io/badge/all_contributors-1-orange.svg?style=flat-square)](#contributors-)

<!-- ALL-CONTRIBUTORS-BADGE:END -->

The `a-transformer-transformer` is a tool that allows you to migrate your Angular `@Input()`which are of type
`boolean` or `number` to use the new `transform` property with the `booleanAttribute` or the `numberAttribute`
transformer.

If you have `@Input` with existing decorator arguments for example (`@Input({required: true})`) the tool will merge them
with the `transform: booleanAttribute`.

## Installation

The package can either be installed locally inside your project as a dev dependency or globally. Since its a one time
migration tool we think its best used with `npx` though.

### Local

```bash
 npm i -D a-transformer-transformer
```

### Global

```bash
 npm i -g a-transformer-transformer
```

### npx

```bash
 npx a-transformer-transformer
```

## Usage

To use the transformer just execute one of the following commands inside the root of your project.

### Transform boolean

The transformer currently offers the option to add `{transform: booleanAttribute}` to your `@Input()` of type `boolean`. To do so you have to run the following command.

```bash
npx a-transformer-transformer -b
```

### Transform numbers

The transformer currently offers the option to add `{transform: numberAttribute}` to your `@Input()` of type `number`. To do so you have to run the following command.

```bash
npx a-transformer-transformer -n
```

### Transform all

To apply all available transformations you can run the following command.

```bash
npx a-transformer-transformer -a
```

### Help

To get a list of all the available options you can always run the following command.

```bash
npx a-transformer-transformer -h
```

## Contributors ✨

Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):

<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
<!-- prettier-ignore-start -->
<!-- markdownlint-disable -->
<table>
  <tbody>
    <tr>
      <td align="center" valign="top" width="14.28%"><a href="https://medium.com/@kevinkreuzer"><img src="https://avatars.githubusercontent.com/u/5468954?v=4?s=100" width="100px;" alt="Nivek"/><br /><sub><b>Nivek</b></sub></a><br /><a href="https://github.com/kreuzerk/a-transform-transformer/commits?author=kreuzerk" title="Code">💻</a></td>
    </tr>
  </tbody>
  <tfoot>
    <tr>
      <td align="center" size="13px" colspan="7">
        <img src="https://raw.githubusercontent.com/all-contributors/all-contributors-cli/1b8533af435da9854653492b1327a23a4dbd0a10/assets/logo-small.svg">
          <a href="https://all-contributors.js.org/docs/en/bot/usage">Add your contributions</a>
        </img>
      </td>
    </tr>
  </tfoot>
</table>

<!-- markdownlint-restore -->
<!-- prettier-ignore-end -->

<!-- ALL-CONTRIBUTORS-LIST:END -->

This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification.
Contributions of any kind welcome!

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