Socket
Socket
Sign inDemoInstall

reflect-args

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

reflect-args - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

.travis.yml

2

package.json
{
"name": "reflect-args",
"version": "1.0.0",
"version": "1.0.1",
"description": "Lets you retrieve argument names, including default values from outside a function.",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -0,1 +1,3 @@

[![Build Status](https://travis-ci.org/Tabaci/reflect-args.svg?branch=master)](https://travis-ci.org/Tabaci/reflect-args)
# reflect-args

@@ -32,3 +34,3 @@

* {
* foo: undefined,
* foo: undefined,
* bar: 12,

@@ -35,0 +37,0 @@ * test: '12',

@@ -54,2 +54,18 @@

})
it('should work with doc comments', function () {
/**
* I am a documentation comment. Why on Earth I would appear with
* the function itself, I have( no clue. )
*/
function test (foo, bar)
{
}
expect(getArgs(test)).to.deep.equal({
foo: undefined,
bar: undefined
})
})
})

@@ -56,0 +72,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc