babel-plugin-ts-nameof
Version:
nameof in TypeScript for babel.
33 lines (22 loc) • 973 B
Markdown
babel-plugin-ts-nameof
======================
[](https://badge.fury.io/js/babel-plugin-ts-nameof)
[](https://travis-ci.org/dsherret/ts-nameof)
[](http://github.com/badges/stability-badges)
[`nameof`](https://msdn.microsoft.com/en-us/library/dn986596.aspx) in TypeScript.
## Setup
1. Run:
```
npm install babel-plugin-ts-nameof @types/ts-nameof --save-dev
```
2. Add an entry to `.babelrc` for `babel-plugin-ts-nameof`:
```
{
"plugins": ["babel-plugin-ts-nameof"]
}
```
## Transforms
[Read here](https://github.com/dsherret/ts-nameof/blob/master/README.md)
## Other
* [Contributing](https://github.com/dsherret/ts-nameof/blob/master/CONTRIBUTING.md)
* [Development](https://github.com/dsherret/ts-nameof/blob/master/DEVELOPMENT.md)