UNPKG
ssb-exporter
Version:
latest (1.1.2)
1.1.2
1.1.1
1.1.0
1.0.2
1.0.1
A cli for exporting your scuttlebot history
github.com/arj03/ssb-exporter
arj03/ssb-exporter
ssb-exporter
/
lib
/
common.js
17 lines
(13 loc)
•
301 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
var
fs =
require
(
'fs'
);
module
.
exports
= {
ensureDirExists
:
function
(
exportDir, cb
) {
if
(!fs.
existsSync
(exportDir)) { fs.
mkdir
(exportDir,
function
(
err
){
if
(err)
throw
err;
cb
(); }); }
else
cb
(); } };