Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    one-commandpublic

    one-command

    Overview

    one-command is a simple tools which could help programmer to create/build/test frontend project fast and easy.

    Usage

    one-command -t (http/base64/proxy/json) [optional paramteres]
    

    Based on different type, it supports several tiny jobs which could let you develop easier.

    http - It will create a simple development server then you could start do your web app immediately. It's quite simple now, I'll keep add more development functions in it and hope it could become better and make each web developers could get off duty earier. :p

    base64 - It help you to convert your file to base64, it's helpful when you want to encode your image or font become base64 format and use them in your css file.

    one-command -t base64 -f TARGET_FILE
    

    proxy - Proxy server, you can use config file for proxy settings

    one-command -t proxy -f CONFIG_FILE --type (http/https)
    SOURCE_IP:SOURCE_PORT:SOURCE_PATH-TARGET_IP:TARGET_POST:TARGET_PATH
    

    json - Call json format api and return format value

    one-command -t json [-k element] URL
    

    Changelog

    • v0.1.1 - test json api and display beautiful return format
    • v0.1.0 - add proxy function to testing http server and change type parameter (working)
    • v0.0.2 - add base64 encode script for translate image/font or other resources for usage
    • v0.0.1 - simple http server for testing

    Keywords

    none

    install

    npm i one-command

    Downloadsweekly downloads

    3

    version

    0.1.1

    license

    none

    repository

    githubgithub

    last publish

    collaborators

    • avatar