Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

node-stringify

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-stringify - npm Package Compare versions

Comparing version 0.0.11 to 0.0.12

2

node-stringify.js

@@ -11,3 +11,3 @@ var _ = require('underscore')

if (_.isFunction(obj)) {
return '(' + obj.toString() + ')';
return '(' + obj.toString() + ')'
}

@@ -14,0 +14,0 @@

{
"name": "node-stringify",
"version": "0.0.11",
"version": "0.0.12",
"author": {

@@ -5,0 +5,0 @@ "name": "Chiang Fu",

@@ -24,3 +24,7 @@ var stringify = require('../node-stringify.js')

it('should stringify a function', function () {
expect(stringify(function (x, y, z) {})).toBe('(function (x, y, z) {})')
expect(stringify(function (a, b) { return a + b }))
.toBe('(function (a, b) { return a + b })')
var fn = eval(stringify(function (a, b) { return a + b }))
expect(fn(2, 5)).toBe(7)
})

@@ -27,0 +31,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