JSPM

node-sourcegraph

0.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q24301F
  • License MIT

Simple node api client for Sourcegraph.

Package Exports

  • node-sourcegraph

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (node-sourcegraph) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

WIP.

Simple node api client for sourcegraph. Unofficial, WIP.

npm install node-sourcegraph

AGPL-Licensed.

Jk, it's MIT.

Examples

var sourcegraph = require('sourcegraph');
sourcegraph.repos.get('github.com/learnboost/mongoose', function(err, doc) {
    if(err) throw err;
    console.log(doc);
});

Output:

{ RID: 111891,
  URI: 'github.com/LearnBoost/mongoose',
  Name: 'mongoose',
  OwnerUserID: 271,
  OwnerGitHubUserID: 204174,
  Description: 'MongoDB object modeling designed to work in an asynchronous environment.',
  VCS: 'git',
  CloneURL: 'https://github.com/LearnBoost/mongoose.git',
  ActualCloneURL: null,
  HomepageURL: 'http://mongoosejs.com',
  DefaultBranch: 'master',
  Language: 'JavaScript',
  GitHubStars: 5632,
  GitHubID: 597879,
  Deprecated: false,
  Fork: false,
  Mirror: false,
  Private: false,
  Stat: null }