
Security News
Vite Releases Technical Preview of Rolldown-Vite, a Rust-Based Bundler
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
@kwruntime/core
Advanced tools
kwruntime is a custom nodejs runtime inspired by Deno / Babel. Is the best of both worlds, the simplicity of importing urls and typescript, with all nodejs ecosystem. kwruntime is fast and doesn't have depedencies. Can work as a module for nodejs, or as a
kwruntime is a custom nodejs runtime inspired by Deno / Babel. Is the best of both worlds, the simplicity of importing urls and typescript, with all nodejs ecosystem. kwruntime is fast and doesn't have depedencies. Can work as a module for nodejs, or as a runtime.
kwruntime
is the replacement of @kawix/core
There are many options for installing kwruntime. You can install in any nodejs supported platform: Linux, Windows, Mac, Android, etc.
In Android you can install using Termux (recommended Termux from F-Droid)
x64, armv7, arm64
)curl https://cdn.jsdelivr.net/gh/kwruntime/core@986e359/install/linux.sh | bash
Installer 32/64 bits: https://github.com/kwruntime/core/releases/tag/win32-installer. The installer automatically download the last version.
curl https://cdn.jsdelivr.net/gh/kwruntime/core@a60e7b8/install/android.sh | bash
nodejs
(please version 12 or higher)Prerequisites: Install nodejs from https://nodejs.org/es/download/ or using distro package manager.
In Android Termux you can install using: pkg install nodejs-lts
or pkg install nodejs
curl https://cdn.jsdelivr.net/gh/kwruntime/core@986e359/install/node.sh | bash
> git clone https://github.com/kwruntime/core kwruntime
> cd kwruntime
> node index --self-install
npm install -g @kwruntime/core
kwrun --self-install
# or
yarn global add @kwruntime/core
kwrun --self-install
# or
pnpm add @kwruntime --global
kwrun --self-install
npx @kwruntime/core github://kwruntime/std@808cb57/util/hello.ts
# Syntax: github://USER/Repo@Tag_or_Commit/path/to/script.ts
> kwrun "github://kwruntime/std@808cb57/util/hello.ts"
[kwruntime] Compiling: https://raw.githubusercontent.com/kwruntime/std/808cb57/util/hello.ts
Welcome to @kwruntime/core 🥝😉
You can also import from gitlab.com using gitlab://
import Express from 'npm://express@4.17.1'
main()
async function main(){
const app = Express()
app.get('/', function (req, res) {
res.send('Hello World')
})
app.listen(3000)
console.info("HTTP Server running on 127.0.0.1:3000")
}
import * as Luxon from "https://esm.sh/luxon@2.3.0"
const date = Luxon.DateTime.now().toFormat("yyyy-MM-dd")
console.info(date)
you will get a output like this:
> kwrun luxon_test.ts
[kwruntime] Compiling: /home/ubuntu/scripts/luxon_test.ts
[kwruntime] Compiling: https://esm.sh/luxon
[kwruntime] Compiling: https://cdn.esm.sh/v43/luxon@2.0.1/es2020/luxon.js
2022-01-04
NOTE: When you import URLs the content is cached on disk. For this reason is preferrable when you import, specify an URL containing version, tag, or commit.
const {kwruntime} = require("@kwruntime/core")
kwruntime.import("github://kwruntime/std@808cb57/util/hello.ts")
const {kwruntime} = require("@kwruntime/core")
async function main(){
const Luxon = await kwruntime.import("https://esm.sh/luxon@2.3.0")
const date = Luxon.DateTime.now().toFormat("yyyy-MM-dd")
console.info(date)
}
You can get intelissense in your editor using: https://github.com/kwruntime/vscode-plugin
Contributors are welcome.
FAQs
Runtime for typescript/civet, with URL imports, NPM imports, GITHUB imports, GITLAB imports and more. The fun of deno, inside node.js + civet language.
We found that @kwruntime/core demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
Research
Security News
A malicious npm typosquat uses remote commands to silently delete entire project directories after a single mistyped install.
Research
Security News
Malicious PyPI package semantic-types steals Solana private keys via transitive dependency installs using monkey patching and blockchain exfiltration.