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

repoz

v1.0.1

Published

Repoz client

Downloads

38

Readme

repoz-cli

npm CircleCI Codecov dependencies devDependencies

NPM

Repoz node client. Can be used both as npm pacakge or client tool

Repoz: http://repoz.dextra.com.br

Client (bin)

npm install -g repoz, may require sudo

Usage

Usage: repoz [options] [command]


Commands:

list [options] <project> [urlpath]             list (urlpath is optional, default '/')
get [options] <project> <urlpath> [filepath]   get (filepath is optional, default basename(urlpath))
post [options] <project> <filepath> <urlpath>  post
put [options] <project> <filepath> <urlpath>   put
delete [options] <project> <urlpath>           delete
help [cmd]                                     display help for [cmd]

Options:

-h, --help     output usage information
-V, --version  output the version number

Examples

  1. repoz post myProject local/sub/folder/another.txt /sub/folder/file.txt

Saves local/sub/folder/another.txt to https://repoz.dextra.com.br/repoz/r/myProject/sub/folder/file.txt

  1. repoz get myProject /sub/folder/file.txt

Downloads https://repoz.dextra.com.br/repoz/r/myProject/sub/folder/file.txt to ./file.txt

  1. repoz delete myProject /sub/folder

Deletes everything under https://repoz.dextra.com.br/repoz/r/myProject/sub/folder

  1. repoz list -r myProject

List all files under https://repoz.dextra.com.br/repoz/r/myProject/ recursively

  1. repoz list myProject /sub/folder

List files only in https://repoz.dextra.com.br/repoz/r/myProject/sub/folder

Credentials

Credentials are stored into user local home folder, under ~/.repoz encrypted with aes192
Also the .cipher_key used for encryption is saved in to the same folder.
Username and password will be prompt only when needed, these are the rules:

  • Project has no credentials stored at all.
  • There are only read access type credentials stored for a write command.

Access type are read and write operations, and the relations with commands are this:

  • read : get, list
  • write: post, put, delete

Write access type credentials can be used for read commands. But read access type credentials cannot be used for write commands.

Because this client does not known the access type of the credentials, it tries to guess it. So, for the first time a credential was stored, and it was a read command, then its stored as read access type. But if the same credential its used for write command (after prompt), then the credential gets updated to write access type (and also the password in the process).

Credentials are updated when:

  • Password changes
  • Access type changes from read to write

Module (lib)

npm install --save repoz

Usage

var repoz = require('repoz');
var myProject = repoz.project('myProject', 'myUser', 'myPass')

myProject.list(urlpath, recursive)
myProject.get(urlpath, filepath)
myProject.put(filepath, urlpath) 
myProject.post(filepath, urlpath) 
myProject.delete(urlpath)

Remember that all commands are promises

Examples

Same examples from above

myProject.post('local/sub/folder/another.txt', '/sub/folder/file.txt');
myProject.get('/sub/folder/file.txt');
myProject.delete('/sub/folder/');
myProject.list('/', true);
myProject.list('/sub/folder');

Overall highligths

  • Auto remove all doubles '//'
  • Auto completion of the first '/', so is not needed
  • Auto fix broken query string '/?' for list command
  • Auto resolve path like ../other/file and ~/another/file
  • Credentials are stored, prompt once, use forever

Development

Documentation: http://repoz.dextra.com.br/repoz/docs.html

Install: npm install, may require sudo

Test: npm test

Coverage: ./run-coverage

Running client: ./bin/repoz. To run as repoz only, create a symbolik link with: npm link, may require sudo

To Do

  • [ ] get 302 test and coverage
  • [ ] get/download progress bar (https://www.npmjs.com/package/progress)
  • [ ] debug and silly flag support for winston log