0.0.1 • Published 8 years ago

m-path v0.0.1

Weekly downloads
4
License
MIT
Repository
github
Last release
8 years ago

m-path

npm total download npm version License

インストール - 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

console.log(hr); console.log('getPlatform():', m_path.getPlatform()); console.log('isWindows():', m_path.isWindows()); console.log('getPathseparator():', m_path.getPathseparator());

console.log(hr); console.log('pathSplit():', m_path.pathSplit("./path/path2/path3")); console.log('pathSplit():', m_path.pathSplit("path/path2/path3"));

console.log(hr); console.log('pathJoin():', m_path.pathJoin('.', 'path', 'path2', 'path3')); console.log('pathJoin():', m_path.pathJoin('path', 'path2', 'path3'));

}).call(this);

</pre>

ライセンス - License

MIT License

作者 - Author