# @daniel765/node-nosync-icloud

> Make iCloud sync ignore node_modules in your project

Latest version **1.0.1** (published 2022-03-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install @daniel765/node-nosync-icloud
pnpm add @daniel765/node-nosync-icloud
yarn add @daniel765/node-nosync-icloud
bun add @daniel765/node-nosync-icloud
```

Provides the command `nsn`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2022-03-19 |
| First published | 2022-03-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 10.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Daniel Pham |
| Maintainers | daniel.pham765 |
| Keywords | iCloud, nosync, sync, node_modules |

## Links

- npm: https://www.npmjs.com/package/@daniel765/node-nosync-icloud
- Repository: https://github.com/danielpham765/icloud-nosync-node
- Homepage: https://github.com/danielpham765/icloud-nosync-node#readme
- Issues: https://github.com/danielpham765/icloud-nosync-node/issues
- npm.io page: https://npm.io/package/@daniel765/node-nosync-icloud

## Dependencies (2)

- [shelljs](https://npm.io/package/shelljs.md) ^0.8.3
- [minimist](https://npm.io/package/minimist.md) ^1.2.0

## Alternatives

- [@commercetools/sync-actions](https://npm.io/package/@commercetools/sync-actions.md) — 25.1K weekly downloads
- [cwait](https://npm.io/package/cwait.md) — 21.4K weekly downloads
- [@ledgerhq/hw-app-cosmos](https://npm.io/package/@ledgerhq/hw-app-cosmos.md) — 4.2K weekly downloads
- [@financial-times/o-loading](https://npm.io/package/@financial-times/o-loading.md) — 2.8K weekly downloads
- [fa](https://npm.io/package/fa.md) — 185 weekly downloads

## Recent versions

- 1.0.1 (latest) — 2022-03-19
- 1.0.0 — 2022-03-19

## README

# 🖕iCloud (from 🔋's everywhere)

## iCloud NoSync node

This package gives you access to `nsn` command which does some work to stop iCloud from syncing `node_modules` and forever eating your processing power, bandwidth, and battery.

To use:

```sh
# Install tool with yarn
yarn global add @daniel765/node-nosync-icloud

# Or Install tool with npm
npm install -g @daniel765/node-nosync-icloud
```
```sh
# Install dependencies with yarn
nsn

# Or install dependencies with npm
nsn -m npm
```
- `-m` flag: is what package manager `yarn/npm` that you want to use. Default  package manager is `yarn`
- `-n` flag will prevent it from creating/modifying `.gitignore` file

The script does a few things to work:

- Step 1: if no `node_modules` is detected it will `yarn/npm install` for you
- Step 2: Rename `node_modules` to `node_modules.nosync`
- Step 3: Add symlink `node_modules` -> `node_modules.nosync` so stuff still works
- Step 4: Add entry to `.git/info/exclude` to ignore the newly created `node_modules` symlink and `node_modules.nosync`
- Step 5: Add entry to `.gitignore` to ignore the `node_modules` folder
- Step 6: 💰💰💰?

### Special thx to Apple for not creating an ignore setting 🙄

## To prevent iCloud from syncing any folder in Finder

https://github.com/danielpham765/icloud-nosync-node

---
_Source: https://npm.io/package/@daniel765/node-nosync-icloud · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
