# maptype

> Maptype extracts a value from TypeScript types. The library is intended to be used as a part of a pre-processing step, not at application runtime.

Latest version **0.0.1** (published 2020-10-25) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: has types; no vulnerabilities; high quality score.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2020-10-25 |
| First published | 2020-10-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 37.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Juuso Mikkonen |
| Maintainers | juusaw |

## Links

- npm: https://www.npmjs.com/package/maptype
- Repository: https://github.com/juusaw/maptype
- Homepage: https://github.com/juusaw/maptype#readme
- Issues: https://github.com/juusaw/maptype/issues
- npm.io page: https://npm.io/package/maptype

## Dependencies (1)

- [typescript](https://npm.io/package/typescript.md) 4.0.3

## Recent versions

- 0.0.1 (latest) — 2020-10-25

## README

# maptype

Maptype extracts a value from TypeScript types. The library is intended to be used as a part of a pre-processing step, not at application runtime.

## Usage

`npm install maptype`

In code:

```ts
import { processTypes } from 'maptype'

const typemap = {
  ...
}

const source = `...`

processTypes(typemap, source)
```

## Typemap

Typemap is an object that specifies the processing step of different type nodes. Maptype uses the typemap to collect a result from each type it encounters in the source string. See `src/index.spec.ts` for an example of a typemap that defines a specific string representation for types.

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