Hi I would like to run this script with bash command. I already installed node
How can I run this? Also I would like to parse some variable example node bb.js NiceTitle ./file.txt
<script type="text/javascript" src="http://binbox.io/api.js"></script>
<script type="text/javascript">
var BB = new Binbox.API("http://api.binbox.io/");
BB.create({
title: "here the NiceTitle from command",
text: "Here a path to ./file.txt",
}, function(result)
{
console.log(result);
if(result.ok)
{
console.log(result.id, result.salt);
}
else
{
console.log(result.error);
}
});
</script>
node <modulename>.