dropbox-recursive-ignore-node_modules

Recursively ignores node_modules folders on your dropbox account so they won't sync

Usage no npm install needed!

<script type="module">
  import dropboxRecursiveIgnoreNodeModules from 'https://cdn.skypack.dev/dropbox-recursive-ignore-node_modules';
</script>

README

Dropbox Ignore node_modules

This NodeJS script works as a CLI that tells Dropbox to ignore all node_modules directories. It searches recursively, so you only have to run it once.

As per Dropbox Documentation you can see the simple command used to do this.

Usage

Install package globally.

npm i dropbox-recursive-ignore-node_modules -g

Using CLI, navigate to your primary Dropbox folder.

You may use the command dropignore or di for short.

cd ~/Dropbox
di

Notes

  • Should work with Windows, Windows with WSL, MacOS and Linux. Only tested on Windows with WSL.
  • This will only ignore currently installed node_modules folders, so you'll have to run it again if you install a new project.

Forked from tmackness/dropbox-ignore-node_modules Many thanks to tmackness and dilincoln for their work on the original project.