Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
@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
# or
yarn global add @kwruntime/core
# or
pnpm add @kwruntime --global
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
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
The npm package @kwruntime/core receives a total of 6 weekly downloads. As such, @kwruntime/core popularity was classified as not popular.
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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.