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

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

  •  
  •   sox ·
    egoist · Dec 8, 2015 · 1718 views
    This topic created in 3834 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   ·   5691 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 117ms · UTC 06:36 · PVG 14:36 · LAX 23:36 · JFK 02:36
    ♥ Do have faith in what you're doing.