New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@decky.fx/node-repl

Package Overview
Dependencies
Maintainers
0
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@decky.fx/node-repl

A Zero Dependancy NodeJS REPL

latest
Source
npmnpm
Version
1.0.0-a
Version published
Maintainers
0
Created
Source

Node-REPL

What is this?

This is a simple nodejs server, it has zero dependancy!

Features

  • zero dependancy
  • basic command handler
  • basic arguments handler

Requirement

  • nvm
  • nodejs >= v20.17.0
  • yarn

Latest Version

1.0.0

Usage

Install with

npm i @decky.fx/node-repl

See example folder

import repl, { command } from "../dist/index";

async function add(...inputs: (string | number)[]) {
  return inputs.reduce((sum, cur) => {
    return sum + typeof cur === "number" ? cur : 0;
  }, 0);
}

command("add", async (args) => {
  const result = await add(...args.args);
  return true;
});

repl();


Todos

  • Next ideas

Keywords

repl

FAQs

Package last updated on 14 Nov 2024

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