🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

path-format

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

path-format

Node.js path.format() polyfill

1.2.1
latest
Source
npm
Version published
Maintainers
1
Created
Source

path-format

Node.js path.format(pathObject) polyfill.

Install

$ npm install --save path-format

Usage

var pathFormat = require('path-format');

pathFormat({
    root : "/",
    dir : "/home/user/dir",
    base : "file.txt",
    ext : ".txt",
    name : "file"
})
//=> '/home/user/dir/file.txt'

API

pathFormat(path)

See path.format(pathObject) docs.

pathFormat.posix(path)

The Posix specific version.

pathFormat.win32(path)

The Windows specific version.

Keywords

path

FAQs

Package last updated on 21 Sep 2015

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