
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
version-repo-node
Advanced tools
An extention to the version-repo package with a backend provided by MongoDB.
See version-repo for the general version-repo API.
An asynchronous repository which forwards all requests to another
version-repository over http. (The RouterRepo class available in the
version-repo-node wraps
another repository with an HTTP interface).
var my_file_based_repo = new FileRepo({ dir: "/some/place/nice", ext: "txt" })
A wrapper for another 'host' repository which provides an HTTP/S API via ExpressJS
import { MemoryRepo } from "version-repo";
import { Router } from "version-repo-node";
var http = require('http'),
express = require('express'),
superagent = require("superagent");
const app = express();
const host_repo = new MemoryRepo();
app.use('/my-repo', router({ repository:backend, }));
var server = http.createServer(app);
server.listen(0);
console.log( `the host_repo is now expossed on http://localhost:${server.address().port}/my-repo` );
An asynchronous repository which forwards all requests to another
version-repository over http. (The RouterRepo class available in the
version-repo-node wraps
another repository with an HTTP interface).
Note that the RemoteRepo can be webpacked into a browser application.
One of:
(Most common) An object with a complete base_url attribute (e.g. { 'base_url':"http://my.repo.com:1234/my-stuff", })
(typically used for testing) an object with an Express App instance serving a repo router and the relative path, such as:
import { MemoryRepo, RemoteRepo, router } from "version-repo"
import express = require('express');
var app = express(),
host_repo = new MemoryRepo();
app.use('/my-stuff', repo.router({ repository:parser_repo, }));
var my_repo = new RemoteRepo({ app: app, base_url: "/my-stuff" })
import { MemoryRepo, RemoteRepo, router } from "version-repo"
import express = require('express');
import http = require('http');
var app = express(),
host_repo = new MemoryRepo();
app.use('/my-stuff', repo.router({ repository:parser_repo, }));
var server = http.createServer(app)
my_repo =new RemoteRepo({ app: server, base_url: "/my-stuff" })
FAQs
A set of versioned data-stores
The npm package version-repo-node receives a total of 1 weekly downloads. As such, version-repo-node popularity was classified as not popular.
We found that version-repo-node demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.