GithubHelp home page GithubHelp logo

tendstofortytwo / cmdmap Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 34 KB

Maps command line arguments to a Web API

Home Page: https://www.npmjs.com/package/cmdmap

License: MIT License

JavaScript 100.00%
middleware nodejs

cmdmap's Introduction

Hi! I'm Naman.

I'm a programmer based in Ontario, Canada. Find me here messing around with all sorts of things that I find interesting.

Until I figure out what else to put on here, maybe read my blog: https://prose.nsood.in

cmdmap's People

Contributors

tendstofortytwo avatar

Watchers

 avatar

cmdmap's Issues

Add multiple return types

  • add support for multiple types
    • possibly via opts parameter rather than taking filename directly?
  • return a file directly
    • preprocess params to detect configuration errors
    • add param type "outputFile", mandatory, which is the argument that the command-line program consumes as the "output file name". This filename will be generated randomly, the file will be saved to a temporary directory with this name, and then served.
      • allow file data to be sent, b64-encoded, in JSON
      • create a file stream object similar to stdout/err to be given to next()
  • give control via next() to stdout/err
  • return stdout/err as JSON
  • only return stdout/err/both as string

Move examples to their own directory

  • find out how other modules store examples
  • store them in their own executable files, rather than expecting them to be copy-pasted from the readme
  • cover all of the commonly used functionality
    • plain command
    • command with string args
    • command with file args
    • command with default args
    • command with invisible args
    • command with different seperators
    • command with exposed stdio

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.