mirror of
https://github.com/fooflington/selfdefined.git
synced 2025-06-10 21:01:41 +00:00
update
This commit is contained in:
13
node_modules/is-relative-path/index.js
generated
vendored
Normal file
13
node_modules/is-relative-path/index.js
generated
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
var util = require('util');
|
||||
|
||||
/**
|
||||
* @param {String} filename
|
||||
* @return {Boolean}
|
||||
*/
|
||||
module.exports = function (filename) {
|
||||
if (typeof filename !== 'string') {
|
||||
throw new TypeError('Path must be a string. Received ' + util.inspect(filename));
|
||||
}
|
||||
|
||||
return filename[0] === '.';
|
||||
};
|
Reference in New Issue
Block a user