famous-git-cache

0.1.6 • Public • Published

famous-git-cache

Build Status Dependency Status devDependency Status

This module is used to fetch the a git repo, checkout a specific version and then return a plain old JavaScript key-value object hash where the key is the relative path (e.g. core/Engine) and the value is the raw content of the that module as a string.

Usage

var fetchFamous = require('famous-git-cache').fetchFamous;

fetchFamous('0.2.1', function(err, famous) {
  if (err) { return console.log(err); }
  /* do something with famous */
});
var clone = require('famous-git-cache').clone;
clone({
  repo: 'git@github.com:Famous/core.git',
  ref: 'master'
}, function(err, corePath) {
  if (err) { return console.log(err); }
  /* do something with corePath */
});

License


This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.

Dependents (0)

Package Sidebar

Install

npm i famous-git-cache

Weekly Downloads

1

Version

0.1.6

License

MPLv2

Last publish

Collaborators

  • famous
  • mylesborins