New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

nano-sync

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nano-sync

Continuous filter update delivery.

latest
Source
npmnpm
Version
0.0.6
Version published
Maintainers
1
Created
Source

Nano Sync Dependencies

NPM

Continuous filter update delivery

A file based differential update system for filter lists.

WORK IN PROGRESS - DEVELOPERS ONLY

Usage

Install

npm install -g nano-sync

Command Line

nano-sync /path/to/filter.txt

Integration

"use strict";

const nsync = require("nano-sync");
nsync.ezPatch("filter.txt");

You need to commit ./nano-sync-data/config.json, although not other cache files in that directory, you should add the following line to .gitignore file:

nano-sync-data/*.txt

If you change your filter list very often, it is recommended to create only one to two patches per day.

Technical

Nano Sync will, by default, generate the following output structure:

filter.txt
filter-diff/
    meta.json
    checkpoint.txt
    1.patch
    2.patch
    3.patch
    4.patch

The structure of meta.json:

{
  "checkpoint": 35,
  "latest": 37
}

checkpoint denotes the version of the checkpoint, latest denotes the latest version.

In the above example, 1.patch then 2.patch need to be applied to checkpoint.txt to generate the latest filter.

3.patch and 4.patch are leftover patch files from last round.

This default mode is optimized for Git repository, you will get a spike in traffic on every checkpoint, but in return, generates the least amount of extra Git history.

FAQs

Package last updated on 14 Jul 2019

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