
Security News
/Research
Popular node-ipc npm Package Infected with Credential Stealer
Socket detected malicious node-ipc versions with obfuscated stealer/backdoor behavior in a developing npm supply chain attack.
@jsrepo/transform-filecasing
Advanced tools
A transform plugin for jsrepo to transform file and folder name cases.
A transform plugin for transforming file and folder names to different case formats before they are added to your project.
Run the following command to install and add the transform to your config:
jsrepo config transform filecasing
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" })],
});
| Option | Type | Description |
|---|---|---|
to | "kebab" | "camel" | "snake" | "pascal" | The target case format for file and folder names |
transformDirectories | boolean | Whether to transform directory segments in the path. When false, only the filename baseName is transformed. Defaults to true |
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
FAQs
A transform plugin for jsrepo to transform file and folder name cases.
The npm package @jsrepo/transform-filecasing receives a total of 4 weekly downloads. As such, @jsrepo/transform-filecasing popularity was classified as not popular.
We found that @jsrepo/transform-filecasing demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
/Research
Socket detected malicious node-ipc versions with obfuscated stealer/backdoor behavior in a developing npm supply chain attack.

Security News
TeamPCP and BreachForums are promoting a Shai-Hulud supply chain attack contest with a $1,000 prize for the biggest package compromise.

Security News
Packagist urges PHP projects to update Composer after a GitHub token format change exposed some GitHub Actions tokens in CI logs.