Function: names
▸ names(name
): Object
Util function to generate different strings based off the provided name.
Examples:
1names('my-name'); // {name: 'my-name', className: 'MyName', propertyName: 'myName', constantName: 'MY_NAME', fileName: 'my-name'}
2names('myName'); // {name: 'myName', className: 'MyName', propertyName: 'myName', constantName: 'MY_NAME', fileName: 'my-name'}
3
Parameters
Name | Type |
---|---|
name | string |
Returns
Object
Name | Type |
---|---|
className | string |
constantName | string |
fileName | string |
name | string |
propertyName | string |