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

yparse

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

yparse

JSON.parse string, array or object recursively

latest
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

About

JSON.parse string, array or object recursively (only parse valid JSON, return original value if is not a valid json)

let parseAll = require('yparse')
let ob = '{"k":true}'
parseAll(ob) // {k:true}

notes

single quotes

will also attempt to parse single quotes of an object or array in a string, by trying to convert to double quotes, else return back the original string

  • will auto catch unquoted object keys

Keywords

JSON

FAQs

Package last updated on 23 Jul 2025

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