archr
Search for and download Arch Linux packages
Last updated a year ago by gavinhungry .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install archr 
SYNC missed versions from official npm registry.

archr

Search for and download Arch Linux packages. Provides both a module and a command line tool.

Installation

$ npm install archr

Usage

var archr = require('archr');

See archr.defaults for configurable defaults.

Search

// archr.search(query, [repo], [arch]) -> {Promise}

archr.search('linux').then(function(pkgs) {
  // pkgs is an array of package data objects
});

Individual Package

// archr.package(pkgname, [repo], [arch]) -> {Promise}

archr.package('linux', 'testing').then(function(pkg) {
  // pkg is a single package data object
});

Download URI

// archr.uri(pkgname, [repo], [arch]) -> {Promise}

archr.uri('linux', 'testing').then(function(uri) {
  // uri is a URI to download testing/linux
});

Command Line

Commands:

  search <query>
  download <pkg> [pkg...]

Options:

  -h, --help         output usage information
  -V, --version      output the version number
  -a, --arch <arch>  system architecture
  -d, --dir <dir>    path to save downloads
  -q, --quiet        no version output

Examples

Search for keyword on all repos:

$ archr search linux

Search for keyword on a specific repo:

$ archr search testing/linux

Download package (change mirror in archr.defaults):

$ archr download testing/linux

License

This software is released under the terms of the MIT license. See LICENSE.

Current Tags

  • 2.0.0                                ...           latest (a year ago)

6 Versions

  • 2.0.0                                ...           a year ago
  • 1.2.1                                ...           4 years ago
  • 1.2.0                                ...           4 years ago
  • 1.0.0                                ...           4 years ago
  • 0.3.0                                ...           6 years ago
  • 0.2.0                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (6)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |