Giter Site home page Giter Site logo

ccsp-jse's Introduction

README

Introduction

JSE is a JavaScript interpreter for running command line scripts and CGI scripts.

Features

  • Built in JavaScript Request object has properties for each of the CGI environment variables
  • The Request object has a QueryParameters property, an object that comprises each of the HTTP request parameters
  • The QueryParameters object has properties that comprise each of the HTTP cookies in the request
  • The QueryParameters object has properties that comprise each of the uploaded files
  • Generation of XML documents from JavaScript objects may be enabled
  • Encryption and decryption of JavaScript strings and buffers may be enabled
  • Fast CGI support may be enabled

Dependencies

JSE requires the following libraries:

Configuring

The build needs to be configured using CMake with a version of at least 3.8. Create a build directory in the same directory as you have unpacked the JSE source.

Build options

Build options can be enabled using the CMake -D switch for example:

$ cmake ../jse -DENABLE_LIBXML2=ON -DENABLE_LIBCRYPTO=ON

The following build options are available:

Option Default value Alternative Description
BUILD_RDK OFF ON Build with Cosa CCSP API
FAST_CGI OFF ON Enable Fast CGI support
ENABLE_LIBXML2 OFF ON Enable XML generation API
ENABLE_LIBCRYPTO OFF ON Enable encryption/decryption API

Building

Once configured JSE can be built using make.

$ make

Command syntax

The command syntax is:

jse [options] [script_name]

  • In non HTTP mode the script name is optional. If it is omitted the script is read from standard input
  • In HTTP CGI mode the script name is required
  • In HTTP Fast CGI mode the script name is ignored. The script name is provided via the SCRIPT_FILENAME environment variable as part of the Request object.

The following command line options are available:

Option Long Option Description
-c --cookies Process HTTP cookies
-e --enter-exit Enable function enter/exit debug
-g --get Process HTTP GET requests
-h --help Help
-n --no-ccsp Do not initialise CCSP (when built in)
-p --post Process HTTP POST requests
-u --upload-dir Specify a different HTTP file upload directory (default /var/jse/uploads)
-v --verbose Verbosity. Use multiple times to turn up verbosity

ccsp-jse's People

Contributors

armcc avatar g4tgj avatar george-red avatar melaniered avatar michal-kopczynski-red avatar richard-tomlinson-red avatar waqar-altaf avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

cyberspice

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.