1var glob = require("glob");
5 fs.mkdirSync("./flattened");
7 // ignore the error if it already exists
8 if (e.code !== "EEXIST") {
13glob("bower_components/*/src/**/*.{js,purs}", function(err, files) {
15 files.forEach(function(file) {
16 // We join with "-" because Cabal is weird about file extensions.
17 var dest = "./flattened/" + file.split("/").slice(3).join("-");
18 console.log("Copying " + file + " to " + dest);
19 var content = fs.readFileSync(file, "utf-8");
20 fs.writeFileSync(dest, content, "utf-8");
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list