Tiny module for get script filename
Install through NPM
npm install filename
or
git clone git://github.com/hex7c0/filename.git
inside nodejs script
var filename = require('filename');
var name = filename();
// equal
var name = filename(__filename);
path
- String Path to normalize (default "module.parent.filename")
Take a look at my examples