npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

node-reposync

v2.0.1

Published

Helper NPM package for syncing base project with multiple repos

Downloads

48

Readme

node-reposync

Helper NPM package for syncing base project with multiple repos.

Test Release & Publish

This nodejs module was created to substitute repo tool required to download and update multiple repositories while working with Yocto-based projects.

It also allows to use nodejs package.json to manage build scripts for your Yocto-based project.

Quick start

Existing project

1. Install module as developer dependency:

npm install node-reposync --save-dev
# or if you usually yarn:
yarn add node-reposync --dev

2. Add repos and reposDir to your package.json

  • repos is stores all repos that needs to be synchronized;
  • reposDir defines a directory where all repos will be synchronized;

For example:

{
	"reposync": {
		"repos": {
			"meta-openembedded": {
				"url": "https://github.com/openembedded/meta-openembedded.git",
				"branch": "kirkstone",
				"depth": 1
			}
		},
		"dir": "sources"
	}
}

4. Add script to your package.json

{
	"scripts": {
		"sources": "reposync"
	}
}

5. Run invocation script

npm run sources

New project

1. Create package.json for parent project

First, lets create package.json:

npm init

Second, add repos and/or reposDir to package.json.

Minimal package.json should have this:

{
	"reposync": {
		"repos": {
			"meta-openembedded": {
				"url": "https://github.com/openembedded/meta-openembedded.git"
			}
		}
	}
}

Practical package.json can have also branch names and depth levels, alone with directory where repos will be synchronized:

{
	"reposync": {
		"repos": {
			"meta-openembedded": {
				"url": "https://github.com/openembedded/meta-openembedded.git",
				"branch": "kirkstone",
				"depth": 1
			}
		},
		"dir": "sources"
	}
}

2. Invocation from parent project

Javascript:

// sources.js
var Reposync = require('node-reposync');
var sync = new Reposync.Sync();
console.log(sync.doSync({}));

Or if you prefer Typescript (you will need to enable Typescript support to run this):

import { Sync } from 'node-reposync';
new Sync().doSync({});

Full working example

For this example you will need nodejs and NPM installed.

0. Install required tools

Ubuntu

This will also install nodejs

sudo apt install -y npm

Other OSes

Please refer to this link:

https://docs.npmjs.com/downloading-and-installing-node-js-and-npm

1. package.json

Create package.json in root directory of your project.

{
	"name": "your-distro",
	"version": "0.0.1",
	"description": "",
	"scripts": {
		"sources": "node sources.js"
	},
	"dependencies": {
		"node-reposync": "^0.0.5"
	},
	"reposync": {
		"dir": "sources",
		"repos": {
			"poky": {
				"url": "git://git.yoctoproject.org/poky",
				"branch": "kirkstone",
				"depth": 1
			},
			"meta-openembedded": {
				"url": "https://github.com/openembedded/meta-openembedded.git",
				"branch": "kirkstone",
				"depth": 1
			},
			"openembedded-core": {
				"url": "git://git.openembedded.org/openembedded-core",
				"branch": "kirkstone",
				"depth": 1
			}
		}
	}
}

2. sources.js

Create sources.js in root directory of your project.

// sources.js
var Reposync = require('node-reposync');
var sync = new Reposync.Sync();
console.log(sync.doSync({}));

3. Initialize NPM

Run in terminal from root directory of your project.

npm install

4. Run

Now you can run sources sync script. It will git clone or git fetch into specified rootDir, depending on existence of repo directory.

npm run sources