New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

caller-arguments

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

caller-arguments

Function that returns the arguments passed into its caller.

latest
Source
npmnpm
Version
1.0.2
Version published
Weekly downloads
10
-90.83%
Maintainers
1
Weekly downloads
 
Created
Source

caller-arguments

Returns the arguments of the caller.

Usage

const args = require('caller-arguments')
function foo() {
  console.log(args())
}

foo('bar') // outputs "[Arguments] { '0': 'bar' }"

If your file is in strict mode or you try to call args() in an arrow function, it will not work and instead throw an error.

Keywords

stupid

FAQs

Package last updated on 20 Mar 2026

Did you know?

Socket

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.

Install

Related posts