Javascript4D

(★ 58)

A native JavaScript (ECMAScript 5.1) parser and interpreter written in Delphi/Object Pascal. Execute JavaScript code directly from your Delphi applications.

File Explorer

  • .gitattributes
  • .gitignore
  • GDK.Javascript4D.dspec
  • Javascript4D.dpr
  • Javascript4D.dproj
  • Javascript4D.res
  • LICENSE
  • post-commit.txt
  • README.md

# Use via CDN

jsDelivr

jsDelivr serves any public GitHub repository as a CDN with zero setup. Pick a version and a file to get a ready-to-paste link and snippet.

Command Glossary

Commands referenced in this DOCs, explained below.

🔍

join

View Details ▼

Join lines of two sorted files on a common field.

join {{path/to/file1}} {{path/to/file2}}

Join two files on the first (default) field:

join -t ',' {{path/to/file1}} {{path/to/file2}}

Join two files using a comma (instead of a space) as the field separator:

join -1 {{3}} -2 {{1}} {{path/to/file1}} {{path/to/file2}}

Join field3 of file1 with field1 of file2:

🔍

pop

View Details ▼

Send emails from your terminal.

pop

Launch the Text-based User Interface:

pop < {{path/to/message.md}} --from {{[email protected]}} --to {{[email protected]}} --subject "{{On the Subject of Ducks...}}" --attach {{path/to/attachment}}

Send an email using the content of a Markdown file as body:

pop --help

Display help:

🔍

shift

View Details ▼

Move positional parameters.

shift

Remove the first positional parameter:

shift {{n}}

Remove the first `n` positional parameters:

🔍

split

View Details ▼

Split a file into pieces.

split {{[-l|--lines]}} 10 {{path/to/file}}

Split a file, each split having 10 lines (except the last split):

split -l 10 {{path/to/file}}

Split a file, each split having 10 lines (except the last split):

split {{[-n|--number]}} 5 {{path/to/file}}

Split a file into 5 files. File is split such that each split has same size (except the last split):

🔍

replace

View Details ▼

Replace files.
See also: `robocopy`, `move`, `del`.

replace {{path\to\file_or_directory}} {{path\to\destination_directory}}

Replace the destination file with the one from the source directory:

replace {{path\to\file_or_directory}} {{path\to\destination_directory}} /a

Add files to the destination directory instead of replacing existing files:

replace {{path\to\file_or_directory}} {{path\to\destination_directory}} /p

Interactively copy multiple files, with a prompt before replacing or adding a destination file:

// repository documentation