0.9.0 • Published 9 years ago

@fav/path.dirname v0.9.0

Weekly downloads
42
License
MIT
Repository
github
Last release
9 years ago

@fav/path.dirname NPM version

Provides same behaviors of path.dirname module for all versions of node.js

Install

For installing @fav/path with npm:

$ npm install @fav/path --save

For installing only @fav/path.dirname with npm:

$ npm install @fav/path.dirname --save

Usage

When installing @fav/path:

const path = require('@fav/path');

path.dirname('path/to/file.ext');
// => path/to

When installing @fav/path.dirname:

const dirname = require('@fav/path.dirname');

dirname('path/to/file.ext');
// => path/to

API

dirname(path)

Returns a directory part of a file path.

Arguments
  • path string : an absolute or relative path string.
Errors

License

Copyright (C) 2016 Takayuki Sato

This program is free software under MIT License. See the file LICENSE in this distribution for more details.

0.9.0

9 years ago

0.8.0

9 years ago

0.7.0

9 years ago

0.6.0

9 years ago

0.5.0

9 years ago

0.4.0

9 years ago

0.3.0

9 years ago