0.0.2 • Published 8 years ago

lark-utils v0.0.2

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

lark-utils

Some utilities for Lark

NPM version build status Test coverage NPM downloads Node.js dependencies

install

$ npm install --save lark-utils

path

absolute

Get an absolute path

utils.path.absolute(path, basepath);

if path is already an absolute path, return that path. Or return the absolute path joined from path and basepath, while default value of basepath is the directory of process.mainModule.filename

basename

Get the basename of a path. This will detect extname automaitically

utils.path.basename('/foo/bar.js');  // ===> bar
0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago