Skip to content

danialjivraj/prettier-format-script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

prettier-format-script

This script uses Prettier to format every file within a specified root folder, with the option to exclude specific files and folders from being formatted.
When executed, the script provides feedback through the terminal, including information about which files are being formatted and any issues encountered during the process.

Prettier will format the following languages:
image

Preview

image

using a root folder name the script can't find: image

Dependencies

To use the script, add the following to your package.json:

  "type": "module",
  "devDependencies": {
    "prettier": "2.8.8"
  }

Then, run the following command to install Prettier:

npm install 

Running the Script

To run the script, use the command:

node .\format.js

Note: Make sure you're running the script from the correct directory where format.js is located.
          Node.js is being used to run the command.

About

a script that formats all files in a specified root folder, allows exclusions of specific files or folders, and provides real-time feedback in the terminal

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors