# nosyncer

Adds `.nosync` file to all `**/node_modules` directories so that iCloud can ignore these folders while sync'ing.

## Installation

```sh
npm i -g nosyncer
```

## Usage

Below will take care of all `node_modules` folders within current working directory (nested search).

```sh
$ nosync

# OR

$ nosync .
nosync file already exists at 'node_modules/.nosync'
created .nosync file at 'node_modules/@jovian/fourq-config/node_modules'
created .nosync file at 'node_modules/argparse/node_modules'
created .nosync file at 'node_modules/body-parser/node_modules'
created .nosync file at 'node_modules/codelyzer/node_modules'
```

Targetting is also possible by providing a target path:

```sh
$ nosync "/usr/some/path"
nosync file already exists at '/usr/some/path/node_modules/.nosync'
created .nosync file at '/usr/some/path/node_modules/@jovian/fourq-config/node_modules'
created .nosync file at '/usr/some/path/node_modules/argparse/node_modules'
created .nosync file at '/usr/some/path/node_modules/body-parser/node_modules'
created .nosync file at '/usr/some/path/node_modules/codelyzer/node_modules'
```
