UNPKG

babel-plugin-ts-nameof

Version:
33 lines (22 loc) 973 B
babel-plugin-ts-nameof ====================== [![npm version](https://badge.fury.io/js/babel-plugin-ts-nameof.svg)](https://badge.fury.io/js/babel-plugin-ts-nameof) [![Build Status](https://travis-ci.org/dsherret/ts-nameof.svg)](https://travis-ci.org/dsherret/ts-nameof) [![stable](http://badges.github.io/stability-badges/dist/stable.svg)](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)