🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

node-nosync

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-nosync

Prevent 'node_modules' from sync to iCloud

latest
Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
1
-80%
Maintainers
1
Weekly downloads
 
Created
Source

Node Nosync

防止 node_modules 同步到 iCloud 中。

原理

iCloud 不会同步以 .nosync 结尾的文件以及文件夹。

node_modules 重命名为 node_modules.nosync,然后创建一个软链 node_modules 指向 node_modules.nosync 即可实现。

使用

安装

npm i -g node-nosync
# or
yarn global add node-nosync

然后在 node_modules 同级目录下执行 nosync,即可。

本工具启发自 nosync-icloud,但是将其极简化,一个工具只做一件事。

建议的使用方法

将其放到你的 package.jsonpostinstall 脚本内,像下面这样

{
    "script": {
        "postinstall": "nosync"
    }
}

Keywords

iCloud

FAQs

Package last updated on 03 Mar 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts