Skip to content

Natalie-2004/Automate-HTML-CSS-JS-Script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Automate-HTML-CSS-JS-Script

A script to generate a directory with custom name and three files 'index.html', 'app.js', and 'styles.css'. There is a default template at index.html as well.

Prerequisites

Manual

  1. Open Terminal:

    • Navigate to the directory where your script is located.
  2. Run the Script:

    • Use the following command to run the script:
    node yourScriptName.js [folderName]
    • Replace yourScriptName.js with the actual name of your script file.
    • [folderName] is optional. If not provided, the default name Project will be used.
  3. Directory Handling:

    • If a directory with the specified name already exists, the script will prompt:
    Directory [folderName] already exists. Type YES to replace it, Type NO to terminate:
    
    • Type YES to delete the existing directory and create a new one.
    • Type NO to terminate the operation without making any changes.
  4. Files Created:

    • index.html: Contains default HTML content.
    • app.js: An empty JavaScript file.
    • styles.css: An empty CSS file.

About

A script to generate a directory with custom name and three files 'index.html', 'app.js', and 'styles.css'.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors