Benign javascript Download

@datarails-ai/dr-cli 1.6.74

Legitimate Datarails CLI tool

“Datarails CLI”

New fast-publishing package claims other repo/node path

Evidence

Depends on ESLint package.json · lines 1–48
1{
2 "name": "@datarails-ai/dr-cli",
3 "version": "1.6.74",
4 "description": "Datarails CLI",
5 "type": "module",
6 "engines": {
7 "node": ">=18"
8 },
9 "bin": {
10 "dr": "./dist/cli.js"
11 },
12 "files": [
13 "dist/",
14 "scripts/postinstall.mjs"
15 ],
16 "publishConfig": {
17 "access": "public"
18 },
19 "dependencies": {
20 "@datarails-ai/dr-appspace-cli": "0.9.5",
21 "@modelcontextprotocol/sdk": "^1.29.0",
22 "@napi-rs/keyring": "^1.3.0",
23 "commander": "^12.1.0",
⋯5 lines
29 "zod": "^3.25.76"
30 },
31 "devDependencies": {
32 "@types/node": "^20.14.0",
33 "@types/turndown": "^5.0.6",
34 "@typescript-eslint/eslint-plugin": "^8.0.0",
35 "@typescript-eslint/parser": "^8.0.0",
36 "@vitest/coverage-v8": "^2.1.9",
37 "eslint": "^9.7.0",
38 "jsdom": "^29.1.1",
39 "msw": "^2.3.0",
40 "prettier": "^3.3.0",
41 "tsup": "^8.1.0",
42 "tsx": "^4.16.0",
43 "typescript": "^5.5.0",
44 "vitest": "^2.0.0"
45 },
46 "scripts": {
47 "dev": "tsx src/cli.ts",
48 "build": "tsup",
"format": script in package.json package.json · lines 51–59
51:13… ck": "tsc -p tsconfig.build.json --noEmit",
52 "test": "vitest run",
53 "test:watch": "vitest",
54 "lint": "eslint",
55 "format": "prettier --write .",
56 "format:check": "prettier --check .",
57 "postinstall": "node scripts/postinstall.mjs"
58 }
59}
Contains the esbuild __export helper cli.js · lines 1–16
1#!/usr/bin/env node
2var __defProp = Object.defineProperty;
3var __export = (target, all) => {
4 for (var name in all)
5 __defProp(target, name, { get: all[name], enumerable: true });
6};
7
8// src/cli.ts
9import { Command, CommanderError } from "commander";
10import { realpathSync } from "fs";
11import { fileURLToPath as fileURLToPath6 } from "url";
12
13// package.json
14var package_default = {
15 name: "@datarails-ai/dr-appspace-cli",
16 version: …
/node path cli.js · lines 45–55
45:2… zod: "^4.6.5"
46 },
47 devDependencies: {
48 "@types/jsdom": "^21.1.7",
49 "@types/node": "^20.14.0",
50 msw: "^2.3.0",
51 prettier: "^3.3.0",
⋯4 lines
Slice split at decimal offsets cli.js · lines 61–69
61:10… formatBuildTime(iso) {
62 if (iso === "") return "";
63 const d = new Date(iso);
64 if (Number.isNaN(d.getTime())) return "";
65 return `${d.toISOString().slice(0, 16).replace("T", " ")} UTC`;
66}
67function composeVersion(version, buildTimeIso) {
68 const built = formatBuildTime(buildTimeIso);
69 re …

Showing the top 5 files — 4 more files (59 regions) not shown.

No evidence locations were recorded for this file. Raw result

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.