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