For AI agents: the complete documentation index is available at /next/zh/llms.txt, the full documentation bundle is available at /next/zh/llms-full.txt, and this page is available as Markdown at /next/zh/api/rspeedy/rspeedy.transformimport.customname.md.
Rspeedy logo
Rspeedy
  • 简体中文
  • Home > @lynx-js/rspeedy > TransformImport > customName

    TransformImport.customName property

    Customize the transformed path.

    Signature:

    customName?: string | undefined;

    Default Value

    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.

    除非另有说明,本项目采用知识共享署名 4.0 国际许可协议进行许可,代码示例采用 Apache License 2.0 许可协议进行许可。