
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
@slofp/aijs
Advanced tools
javascriptからAiScriptに変換します。
まだインストールはできませんが直にできるようになります。
npm install @slofp/aijs
convert(sourceCode: string, options?: ConvertOption): Promise<string>
【引数】
sourceCode: string
javascriptソースコード
options?: ConvertOption
変換時のオプション、なければ通常設定で変換されます
【返り値】
Promise<string>
変換されたAiScriptソースコード
【オプション型】
minify?: boolean
変換コードのインデントなどをなくし小さくします。
meta?: MetaData
AiScriptをMisskeyで使用するときのメタデータを指定できます。
insertVersion?: boolean
AiScriptのバージョンをコード最上部に記述します。
name?: string
名前
author?: string
作成者
version?: string
バージョン
description?: string
説明
permissions?: Permissions[]; コードを使用するために必要な権限
config?: { [key: string]: Config }
コンフィグ情報を定義します。
また、keyはstringを提示しますがAiScriptに則ったkeyでなければエラーになります。type: 'string' | 'number' | 'boolean'
設定値の型
label: string
設定で表示される名前
description: string
設定で表示される説明
default: string | number | boolean
デフォルト値
FAQs
JavaScript to AiScript Converter
We found that @slofp/aijs demonstrated a not healthy version release cadence and project activity because the last version was released 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.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.