0.0.10 • Published 4 days ago

@typescript-nameof/babel v0.0.10

Weekly downloads
-
License
MIT
Repository
github
Last release
4 days ago

TypeScript nameof Babel.js

npm version

Allows the use of nameof() calls in babel projects.

Using this Babel.js plugin, you are able to use nameof() calls for finding out the name of variables, properties and types:

console.log(nameof(console));   // Prints `console`

Furthermore, this package provides an integration for the babel-plugin-macros package:

import myNameof from "@typescript-nameof/babel/macro";

console.log(myNameof(console)); // Prints `console`

If you would like to find out more about this project or how to set up TypeScript nameof in your Babel.js project, check out the repository of the project.