npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

nekoscript

v0.1.4

Published

BD-Script Runtime built in JavaScript to run standalone codes

Downloads

12

Readme

NekoScript

Bot-Discord Script Runtime made in JavaScript

What is it?

This package is not affiliated with any of mentioned softwares, companies, nor community.

NekoScript is served as a JavaScript-made Runtime, allowing for the run of BotDesigner Script language behaviour ( known as BDScript ) made by NilPointer Software. Using $ as a prefix to execute methods, the approach for creating such application is made simpler without much in depth of require for programming knowledge.

Another package named Aoi.js has used of this idea to make somewhat simliar to be brought in NodeJS.

NekoScript has a different concept which are the use of package as a BDScript Runtime and focusing for compatibility. This package can be used in browser and other JavaScript runtime.

Table of Contents

Installation

Browser

Comming Soon for documented usage of example

JavaScript Runtime

The requirements for each listed JavaScript runtimes are:

  • Node.js: v14.x or above
  • Deno.js: v1.26 or above ( Requires NPM Support )
  • Bun.js: Requires Latest support ( Experimental )

NekoScript can be installed by downloading from a command-line as shown below

# In your Command Prompt ( can be a Terminal, Shell, or Console )
npm install nekoscript@latest

# Recommended for Bun.js users to use `bun install`
bun install nekoscript

API Usages

NekoRuntime

NekoRuntime is as-what it is named, its the runtime for running BDScript codes. An instance can be created as the usage shown below:

// ESM is supported
import nekoscript from 'nekoscript';

// or, as for Nodejs
const nekoscript = require("nekoscript");

// Creating a runtime from code input
const NekoRuntime = nekoscript.NekoRuntime
  //.fromInput("runtimeName", "code input");
    .fromInput("myRuntime", "I am the result of code $log[I am logging this text]");

Using Components

As for what methods is the runtime using... it does not have any command presets. Component does the job, these instances provides the runtime command methods and logics. We are using these command methods as shown before, the $log is one of the examples.

We also have provided some built-in presets components ready for use. These are the Native Components pre-bundled to the package:

  • StandardLibrary: Known as std, a library for standard use such as debugging

One of them can be used like the example below:

// Registering components
NekoRuntime.Global
  .Add(new nekoscript.NativeComponents.StandardLibrary(), "std");

// Enabling components for local use
NekoRuntime.Global.Register("std");

Running result

Executing the runtime is the easiest of all procedures, its a one-liner like this:

NekoRuntime.run();

// or, you can log the output
NekoRuntime.run().then(console.log)

Upcoming Features

These features that are listed are not guaranteed and may change over time:

  • Discord Client Support: Creating bot applications in Discord using NekoScript
  • Extended Native Components: Enabling data storing capability by the use of List in code

Links