Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

filename

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

filename

tiny module for get script filename

  • 0.5.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
30
increased by233.33%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

FAQs

Package last updated on 30 Dec 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc