The main page provides the example:
var thsBuilder = require('ths');
var ths = new thsBuilder(__dirname);
passing '__dirname' is evidently redundant because I got the following error:
fs.js:791
return binding.mkdir(pathModule._makeLong(path),
^
Error: ENOENT: no such file or directory, mkdir '/home/matt/noxious/home/matt/noxious/ths-data/keys'
However, if I do:
var thsBuilder = require('ths');
var ths = new thsBuilder();
It runs as expected and the ths-data folder is properly created in the current directory.
The main page provides the example: var thsBuilder = require('ths'); var ths = new thsBuilder(__dirname);
passing '__dirname' is evidently redundant because I got the following error:
fs.js:791 return binding.mkdir(pathModule._makeLong(path), ^ Error: ENOENT: no such file or directory, mkdir '/home/matt/noxious/home/matt/noxious/ths-data/keys'
However, if I do: var thsBuilder = require('ths'); var ths = new thsBuilder();
It runs as expected and the ths-data folder is properly created in the current directory.