add singleton
This commit is contained in:
parent
85d145d487
commit
49816e558d
5
index.js
5
index.js
|
@ -85,9 +85,12 @@ function create(options) {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
, tmpnamefn: tmpnamefn
|
||||||
|
, baknamefn: baknamefn
|
||||||
|
, create: create
|
||||||
};
|
};
|
||||||
|
|
||||||
return sfs;
|
return sfs;
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports.create = create;
|
module.exports = create();
|
||||||
|
|
2
test.js
2
test.js
|
@ -1,6 +1,6 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
var safeReplace = require('./').create();
|
var safeReplace = require('./'); //.create();
|
||||||
//var safeReplace = require('safe-replace').create();
|
//var safeReplace = require('safe-replace').create();
|
||||||
var fs = require('fs');
|
var fs = require('fs');
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue