Last change
on this file since e29cc2e was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
322 bytes
|
Line | |
---|
1 | var utils = require('../utils')
|
---|
2 | , path = require('path');
|
---|
3 |
|
---|
4 | /**
|
---|
5 | * Return the dirname of `path`.
|
---|
6 | *
|
---|
7 | * @param {String} path
|
---|
8 | * @return {String}
|
---|
9 | * @api public
|
---|
10 | */
|
---|
11 |
|
---|
12 | function dirname(p){
|
---|
13 | utils.assertString(p, 'path');
|
---|
14 | return path.dirname(p.val).replace(/\\/g, '/');
|
---|
15 | };
|
---|
16 | dirname.params = ['p'];
|
---|
17 | module.exports = dirname;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.