Socket
Book a DemoInstallSign in
Socket

fix-module-naming

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fix-module-naming

Utility to update all modules to camelCase (from underscore) and to capitalize constructor functions

latest
Source
npmnpm
Version
0.1.3
Version published
Maintainers
1
Created
Source

Fix Module Casing

  • Matches all .js files, camelCases their name, and if a module.exports assignment to either a function declaration or invocation is found, then also capitalizes it, and renames it.

  • Searches for all require(...) calls for the file and renames it accordingly.

Usage

npm install -g fix-module-naming fix-module-naming . where . is either an absolute or relative path

Options

- m, --mock enables mock view, so you can see the output of changes without making them - i, --ignore <items> a comma-delimited list of patterns in folders to ignore

FAQs

Package last updated on 16 Oct 2014

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