This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function bufferImporter (buffer, callback) { | |
| if(!Buffer.isBuffer(buffer)) { | |
| callback('buffer importer must take a buffer') | |
| } | |
| const links = [] // { Hash: , Size: , Name: } | |
| var fsc = new FixedSizeChunker(CHUNK_SIZE) | |
| fsc.write(buffer) | |
| fsc.end() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function bufferImporter (buffer, callback) { | |
| if(!Buffer.isBuffer(buffer)) { | |
| callback('buffer importer must take a buffer') | |
| } | |
| const links = [] // { Hash: , Size: , Name: } | |
| var bufferStream = new stream | |
| bufferStream.push(buffer) | |
| bufferStream.push(null) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module.exports = function (config) { | |
| var path = require('path') | |
| var node_modules_dir = path.join(__dirname, 'node_modules') | |
| var deps = [ | |
| 'path-to-your-bundle-file/forge.bundle.js' | |
| ] | |
| config.set({ | |
| basePath: '', | |
| frameworks: ['mocha'], |
NewerOlder