filename

0.5.0 • Public • Published

filename

NPM version Linux Status Windows Status Dependency Status Coveralls

Tiny module for get script filename

Installation

Install through NPM

npm install filename

or

git clone git://github.com/hex7c0/filename.git

API

inside nodejs script

var filename = require('filename');
 
var name = filename();
// equal
var name = filename(__filename);

filename([path])

path

  • path - String Path to normalize (default "module.parent.filename")

Examples

Take a look at my examples

License GPLv3

Readme

Keywords

Package Sidebar

Install

npm i filename

Weekly Downloads

10

Version

0.5.0

License

GPL-3.0

Last publish

Collaborators

  • hex7c0