Module for git cloning repos to a cache folder on disk and managing that cache

Usage no npm install needed!

<script type="module">
  import famousGitCache from 'https://cdn.skypack.dev/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.


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;
  repo: 'git@github.com:Famous/core.git',
  ref: 'master'
}, function(err, corePath) {
  if (err) { return console.log(err); }
  /* do something with corePath */


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/.