爱意满满的作品展示区。
sox

negative: 把 object 转换成命令行参数

  •  
  •   sox ·
    egoist · Dec 8, 2015 · 1694 views
    This topic created in 3819 days ago, the information mentioned may be changed or developed.

    如果你用过 minimist, 那你就知道 negative 做的是刚好相反的事 XD

    https://github.com/egoist/negative 比如:

    import negative from 'negative';
    // return `command entry.js --verbose -o output.js`
    negative({
      _: ['entry.js'],
      verbose: true,
      o: 'output.js'
    }, 'command');
    
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2675 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 10:57 · PVG 18:57 · LAX 03:57 · JFK 06:57
    ♥ Do have faith in what you're doing.