2.0.2 • Published 10 months ago

run-yopta v2.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
10 months ago

run-yopta - Yopta Script Runner

run-yopta is an npm package that allows you to run code written in the Yopta language, a humorous and playful variant of JavaScript. This module uses the yopta library to convert YoptaScript code into regular JavaScript and execute it directly in the Node.js environment.

Features:

  • Run JavaScript code written in the Yopta language.
  • Converts YoptaScript code to standard JavaScript using the yopta library.
  • Executes the transformed code directly in Node.js.
  • Provides error feedback for missing files and incorrect input parameters.
  • Parameter --tojs to save the converted JavaScript code to a file.

Installation

To install run-yopta globally via npm, run the following command:

npm install -g run-yopta

Usage

Once run-yopta is installed, you can use it to run Yopta code directly from the terminal.

run-yopta <file-path> <parametr?>

Examples: If you have a file named example.yopta containing Yopta code, run the following command in your terminal:

To run it without parametrs:

run-yopta example.yopta

To convert it to js:

run-yopta example.yopta --tojs

To run it in debug mode:

run-yopta example.yopta --debug
2.0.2

10 months ago

2.0.1

10 months ago

2.0.0

10 months ago

1.1.3

10 months ago

1.1.1

10 months ago

1.1.0

10 months ago

1.1.2

10 months ago

1.0.2

10 months ago

1.0.1

10 months ago

1.0.0

10 months ago