Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@genericst/rtl

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@genericst/rtl

A library that provides bootstrap functionality and process management tools for JavaScript applications

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Runtime Library

A library that provides bootstrap functionality and process management tools for JavaScript applications. It allows to extend and Application class and implement the main function in JavaScript.

Installation

  • Run npm install to install dependencies
  • Run npm build to build .ts files into .js
  • Run npm link to create a temporary link to library cli
    If you have a troubles with that commands try to run with sudo.

How to use

Syntax

$ rtl [options]

Command Line Arguments

  • -f: select file
  • -o: push arguments to application

Run

  1. Run with rtl (default): rtl -f demo.js
  2. Run with node (custom): node ./bin/cli.js -f demo.js

Demo

const { Application } = require('./rtl-components');

class Demo extends Application {
    static main(args) {
        const { argv } = process;
        console.dir({ argv, args });
    }
}

module.exports = Demo;

Requirements

  • Entry class must be extended of Application
  • Entry class must be exported from the file
  • Main must be a static function
  • Only use strict, imports/exports, global variables and classes allowed in the file

Scripts

  • npm start - build and run application with rtl
  • npm test - run tests
  • npm run-script rtl-run - run application with rtl
  • npm run-script build - build .ts files into .js
  • npm run-script eslint - check for syntax mistakes

Author

Yehor Bublyk: GitHubTwitter

Keywords

FAQs

Package last updated on 01 Feb 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc