🚨 Active Supply Chain Attack:node-ipc Package Compromised.Learn More
Socket
Book a DemoSign in
Socket

@jsrepo/transform-filecasing

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jsrepo/transform-filecasing

A transform plugin for jsrepo to transform file and folder name cases.

latest
Source
npmnpm
Version
6.0.0
Version published
Weekly downloads
4
-86.21%
Maintainers
1
Weekly downloads
 
Created
Source

@jsrepo/transform-filecasing

npm version npm downloads

A transform plugin for transforming file and folder names to different case formats before they are added to your project.

Usage

Run the following command to install and add the transform to your config:

jsrepo config transform filecasing

Manual Configuration

Install the transform plugin:

pnpm install @jsrepo/transform-filecasing -D

Add the transform to your config:

import { defineConfig } from "jsrepo";
import fileCasing from "@jsrepo/transform-filecasing";

export default defineConfig({
    transforms: [fileCasing({ to: "camel" })],
});

Options

OptionTypeDescription
to"kebab" | "camel" | "snake" | "pascal"The target case format for file and folder names
transformDirectoriesbooleanWhether to transform directory segments in the path. When false, only the filename baseName is transformed. Defaults to true

Examples

Transform both directories and filenames (default behavior):

import { defineConfig } from "jsrepo";
import fileCasing from "@jsrepo/transform-filecasing";

export default defineConfig({
    // Config path: 'src/lib/components/ui'
    // Item path: 'button/index.ts'
    transforms: [fileCasing({ to: "pascal" })],
});
// Result: 'src/lib/components/ui/Button/Index.ts'
// Only the item's relative path is transformed, not the config path

Transform only filenames, preserve directory names:

import { defineConfig } from "jsrepo";
import fileCasing from "@jsrepo/transform-filecasing";

export default defineConfig({
    // Config path: 'src/lib/components/ui'
    // Item path: 'my-components/use-hook.ts'
    transforms: [fileCasing({ to: "camel", transformDirectories: false })],
});
// Result: 'src/lib/components/ui/my-components/useHook.ts'
// Only the filename is transformed, directories in the item path are preserved

Keywords

jsrepo

FAQs

Package last updated on 19 Mar 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts