Skip to content

Instantly share code, notes, and snippets.

View Stayl045's full-sized avatar

Stayl045 Stayl045

View GitHub Profile
@Stayl045
Stayl045 / README.md
Created March 17, 2022 14:45 — forked from ashx3s/README.md
Javascript Imports and Exports

How to import javascript files into one another

Common JS Module System

module.exports/require

  • This is the older way that node would import files into one another.
  • Use it with normal javascript files. This works whether you have a package.json or not
  • Some node packages may not be compatible with this syntax. But it is still in use
@Stayl045
Stayl045 / remove-node-modules.md
Created February 24, 2022 20:36 — forked from lmcneel/remove-node-modules.md
How to remove node_modules after they have been added to a repo

How to remove node_modules

Create a .gitignore file

  1. Check for an existing .gitignore file in the project directory
ls -a