
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
@runtime-env/cli
Advanced tools
Build once, deploy anywhere. Startup/runtime environment variable solution for JavaScript.
$ npm i -D @runtime-env/cli
$ npx -p @runtime-env/cli runtime-env --help
Usage: runtime-env [options] [command]
Options:
-V, --version output the version number
--global-variable-name <globalVariableName> specify the global variable name (default: "runtimeEnv")
--schema-file <schemaFile> specify the json schema file to be loaded (default: ".runtimeenvschema.json")
--watch turn on watch mode (default: false)
-h, --help display help for command
Commands:
gen-js [options] generate a JavaScript file that includes environment variables within an object, making them
accessible through the globalThis property
gen-ts [options] generate a TypeScript file that provides the corresponding type definitions for the JavaScript
file generated by the gen-js command
interpolate [options] perform template interpolation by substituting environment variables
help [command] display help for command
$ npx -p @runtime-env/cli runtime-env gen-js --help
Usage: runtime-env gen-js [options]
generate a JavaScript file that includes environment variables within an object, making them accessible through the globalThis property
Options:
--env-file <envFile...> set environment variables from supplied file (requires Node.js v20.12.0) (default: [])
--output-file <outputFile> specify the output file to be written instead of being piped to stdout
-h, --help display help for command
$ npx -p @runtime-env/cli runtime-env gen-ts --help
Usage: runtime-env gen-ts [options]
generate a TypeScript file that provides the corresponding type definitions for the JavaScript file generated by the gen-js command
Options:
--output-file <outputFile> specify the output file to be written instead of being piped to stdout
-h, --help display help for command
$ npx -p @runtime-env/cli runtime-env interpolate --help
Usage: runtime-env interpolate [options]
perform template interpolation by substituting environment variables
Options:
--env-file <envFile...> set environment variables from supplied file (requires Node.js v20.12.0) (default: [])
--input-file <inputFile> specify the input file to be loaded instead of being read from stdin
--output-file <outputFile> specify the output file to be written instead of being piped to stdout
-h, --help display help for command
FAQs
Build once, deploy anywhere. Startup/runtime environment variable solution for JavaScript.
The npm package @runtime-env/cli receives a total of 1,115 weekly downloads. As such, @runtime-env/cli popularity was classified as popular.
We found that @runtime-env/cli 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.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.