@typescript-nameof/babel
TypeScript icon, indicating that this package has built-in type declarations

0.0.7 • Public • Published

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.

Package Sidebar

Install

npm i @typescript-nameof/babel

Weekly Downloads

28

Version

0.0.7

License

MIT

Unpacked Size

41.7 kB

Total Files

18

Last publish

Collaborators

  • lordgizmo