npm/npm2es2

Name: npm2es2

Owner: npm

Description: fork of npm2es that supports npm's modern configuration and dockerization approaches.

Created: 2017-08-03 23:34:28.0

Updated: 2018-01-22 18:48:57.0

Pushed: 2018-03-16 17:43:07.0

Homepage: null

Size: 54

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

npm2es2

push npm package metadata into elasticsearch for querying

install

npm install -g @npm/npm2es2

use

USAGE: npm2es2 --couch="http://host:port/db" --es="http://host:port/index"

optional

npm2es also takes a --since=<seq number> command line argument incase you want to skip a full re-index

example

npm2es --couch="http://localhost:5984/registry" --es="http://localhost:9200/npm"

This will attach to the provided couchdb's _changes feed and automatically put every package into elasticsearch for indexing. This script will run for as long as you let it, automatically applying updates to the search index.

running the tests

First off, you'll want the following installed

Now we can run the test, just run npm test

configuration

The following environment variables may be used to configure this service:

License

MIT © 2013 solids l.l.c.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.