Command line tool to execute JavaScript on macOS
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Document
OSX
Resource
Sample
Script
Source
Test
Tools
.gitignore
LICENSE
README.md

README.md

JSTools

JSTools Image

Introduction

JSTools contains command line applications to execute JavaScript on the shell. These applications are designed based on Unix Philosophy.

There are 3 kind of applications in this tools:

  1. The command to execute JavaScript on the shell. The built-in library supports pipeline programming with the standard-input and standard-output.
  2. The command to generate, expand and edit the JSON data stream. The usual data conversion can be done by these command without coding custom script.
  3. The wrapper command to give options and arguments by JSON data instead of command line. It generalized the syntax of option and argument for different commands.

The most important thing: This is open source product. You can add/improve libraries by yourself.

This tool uses JavaScriptCore in the WebKit for macOS.

Copyright

This software is produced by Steel Wheels Project and distributed under GNU GENERAL PUBLIC LICENSE Version 2.1. You can download the source code from the repository on GitHub.

Target

  • OS: macOS High Sierra (10.13.2) or later

Development environment

  • Tool: Xcode 9 or later
  • Programming language: Swift

Download and Install

Binary file

The binary package can be downloaded from Open Source Developer Network (OSDN). Visit download page.

Build from the source

See required software page.

User's manual

Command line applications

  • jsrun: Execute JavaScript. See Sample Scripts
  • jscat: JSON file operation: Concatenate JSON files.
  • jsgrep: Select part of object from input JSON file by matching of regular expression.
  • jsadb: Read, write and update AddressBook database.

Related Links


This project is managed by [OSDN](https://osdn.net/). OSDN