For AI agents: the complete documentation index is available at /next/llms.txt, the full documentation bundle is available at /next/llms-full.txt, and this page is available as Markdown at /next/api/rspeedy/rspeedy.transformimport.customname.md.
Rspeedy logo
Rspeedy
  • English
  • 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.

    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.