const-name
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

Const Name

Infer variable name from call or singular form from JS expression.

Main exports: getVariableNameFromCallExpresion(), getSingularFormFromExpression().

Look at tests for examples.

You can integrate it in your extension or code generator.

API (types).

Package Sidebar

Install

npm i const-name

Weekly Downloads

0

Version

0.1.0

License

MIT

Unpacked Size

7.02 kB

Total Files

7

Last publish

Collaborators

  • zardoy