Jarvis Blog

Jarvis Blog

A developer using Javascript and Python

  • Home
  • Archives

minimist轻量级的命令行参数解析引擎

nodejs的命令行参数解析工具有很多,比如:argparse、optimist、yars、commander。optimist和yargs内部使用的解析引擎正是minimist,如果你喜欢轻量级的技术,那么minimist足够简单好用,代码量也很少(只有几百行),非常适合研读。

Jun 1 2014

multiline.js帮你在js当中实现多行文本

想在js当中使用多行字符串?multiline.js帮你实现这个愿望! 12345678var str = multiline(function(){/*<!doctype html><html> <body> <h1

May 29 2014

pymist, python port of minimist

pymist

Apr 19 2014

how to delete a remote git tag

click this link how to delete a remote git tag

Apr 12 2014

A simple module, parse-bytes

parse-bytes

Apr 10 2014

find source history using git log

1git log -p filename

Apr 2 2014

music for spinning

Collect music for spining

Mar 26 2014

some examples for du

display total space usage 1du -s print sizes in human readable format 1du -h estimate the files’ space usage in the directory 1ls | xarg

Mar 11 2014

Here we go!

Here we go!

Feb 7 2014

Tags

  • command opts1
  • git1
  • javascript1
  • light-weight1
  • minimist1
  • module1
  • node2
  • python1
  • string1
  • utilities1
RSS

Powered by hexo and Theme by Pacman © 2014 Jarvis Young