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

cog

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cog - npm Package Compare versions

Comparing version 0.3.2 to 0.4.0

jsonparse.js

2

package.json

@@ -5,3 +5,3 @@ {

"author": "Damon Oehlman <damon.oehlman@gmail.com>",
"version": "0.3.2",
"version": "0.4.0",
"dependencies": {},

@@ -8,0 +8,0 @@ "devDependencies": {

@@ -89,2 +89,15 @@ # cog

## cog/jsonparse
```js
var jsonparse = require('cog/jsonparse');
```
### jsonparse(input)
This function will attempt to automatically detect stringified JSON, and
when detected will parse into JSON objects. The function looks for strings
that look and smell like stringified JSON, and if found attempts to
`JSON.parse` the input into a valid object.
## cog/listen

@@ -91,0 +104,0 @@

require('./defaults');
require('./extend');
require('./listen');
require('./logger');
require('./logger');
require('./jsonparse');
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