Skip to content
Permalink
Browse files

feat(cli): add all impl

  • Loading branch information...
watilde committed Sep 10, 2017
1 parent f4d0c3f commit 2dacfeb52032fc21e509a8e8b93adfbf79b0baae
Showing with 25 additions and 1 deletion.
  1. +4 −0 .gitignore
  2. +5 −0 dat.json
  3. +3 −0 dep-cache.js
  4. +11 −0 index.js
  5. +2 −1 package.json
@@ -57,3 +57,7 @@ typings/
# dotenv environment variables file
.env

# dep-cache
.dat
npm-meta.db
npm-tarballs.db
@@ -0,0 +1,5 @@
{
"title": "dep-cache",
"description": "Cache holder in P2P network",
"url": "dat://36e30dab6e38e7958cacc14a7c78707995bd857d00707a2a7913918936804b16"
}
@@ -0,0 +1,3 @@
#!/usr/bin/env node

require('./')
@@ -0,0 +1,11 @@
const DatNPM = require('dat-npm')
const { ifError } = require('assert')

DatNPM(function (err, datNpm) {
ifError(err)
console.log('Sharing hypercores', {
tarballs: datNpm.tarballs.key.toString('hex'),
meta: datNpm.meta.key.toString('hex')
})
datNpm.startUpdating()
})
@@ -7,6 +7,7 @@
"release": "standard-version",
"test": "standard"
},
"bin": "./dep-cache.js",
"repository": {
"type": "git",
"url": "git+https://github.com/depjs/dep-cache.git"
@@ -23,6 +24,6 @@
"standard-version": "^4.2.0"
},
"dependencies": {
"dat-npm": "^4.0.6"
"dat-npm": "mafintosh/dat-npm#622aecb"
}
}

0 comments on commit 2dacfeb

Please sign in to comment.
You can’t perform that action at this time.