Skip to content
A simple tool help you build the backbone project easier.
JavaScript
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
bin
lib
.gitignore
README.md
package.json

README.md

one-command

Overview

one-command is a tiny tools collection make developer life easier.

Usage

    one-command -t (http/base64/proxy/json/sync) [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

sync

Check and sync your (config) files

one-command -t sync

Don't forget setup your sync file list in config.json

{
    "Sync": [
        { src: '', dest: '' },
        { src: '', dest: '' }
    ]
}

Changelog

  • v0.1.2 - Add file sync
  • 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
Something went wrong with that request. Please try again.