m-path
インストール - Install
$ npm i -S m-path
使い方 - Usage
Functions
}
this.getPlatform = function() {…}
--
};
this.isWindows = function() {…}
--
};
this.getPathseparator = function() {…}
--
};
this.pathSplit = function(path) {…}
--
};
this.pathJoin = function(ary) {…}
NodeJS
Code |
Result |
---|---|
require('m-path'); require("m-util"); var hr = "_".uRepeat(20); var m_path = require("./index.js"); |
# node example.js ____________________ getPlatform(): darwin isWindows(): false getPathseparator(): / ____________________ pathSplit(): [ '.', 'path', 'path2', 'path3' ] pathSplit(): [ 'path', 'path2', 'path3' ] ____________________ pathJoin(): ./path/path2/path3 pathJoin(): path/path2/path3 |
ライセンス - License
MIT License
作者 - Author
- (C)Misaki Shibata misaki.pink@gmail.com