https://github.com/zardoy/const-name
Infer variable name from call expression or singular form from JS expression
https://github.com/zardoy/const-name
npm-package
Last synced: about 1 year ago
JSON representation
Infer variable name from call expression or singular form from JS expression
- Host: GitHub
- URL: https://github.com/zardoy/const-name
- Owner: zardoy
- License: mit
- Created: 2022-05-25T20:27:41.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-06-01T00:04:03.000Z (about 4 years ago)
- Last Synced: 2024-04-25T15:43:53.670Z (about 2 years ago)
- Topics: npm-package
- Language: TypeScript
- Homepage: https://npmjs.com/const-name
- Size: 40 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.MD
- License: LICENSE
Awesome Lists containing this project
README
# Const Name
Infer variable name from call or singular form from JS expression.
Main exports: `getVariableNameFromCallExpresion()`, `getSingularFormFromExpression()`.
Look at [tests](./src/index.spec.ts) for use cases.
You can integrate it with your extension or code generator.
[API (types)](https://paka.dev/npm/const-name).