Home > @lynx-js/rspeedy > TransformImport > customName

TransformImport.customName property

Customize the transformed path.

Signature:

customName?: string | undefined;

Remarks

You you can specify the format of the transformed path. For example, by setting it to my-lib/{{ camelCase member }}, you can convert the member into camelCase.

The following formats are supported:

  • kebabCase: lowercase letters, words joined by hyphens. For example: my-variable-name.

  • snakeCase: lowercase letters, words joined by underscores. For example: my_variable_name.

  • camelCase: first letter lowercase, the first letter of each following word uppercase. For example: myVariableName.

  • upperCase: uppercase letters, other characters unchanged. For example: MY-VARIABLE-NAME.

  • lowerCase: lowercase letters, other characters unchanged. For example: my-variable-name.

Except as otherwise noted, this work is licensed under a Creative Commons Attribution 4.0 International License, and code samples are licensed under the Apache License 2.0.