Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

jsodd

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jsodd

Capture JavaScript values as a string in excruciating detail.

latest
Source
npmnpm
Version
0.0.1-42e0c7f
Version published
Weekly downloads
49
250%
Maintainers
1
Weekly downloads
 
Created
Source

JavaScript Object Descriptor Definition (JSODD)

Capture JavaScript values as a string in excruciating detail.

Examples

Print a plain old JavaScript object

console.log(toJsodd({ foo: "bar" }))
{
	foo: "bar"
}

Print thrown values

console.log(toJsodd(new Error("foo")))
Error {
	unenumerable get stack: <V8ErrorStackGetter>
	unenumerable set stack: <V8ErrorStackSetter>
	unenumerable message: "foo"
	<stack>:
		"Error: foo\n"
		"    at file:///home/samual/Git/samual/jsodd/src/default.ts:1292:21\n"
		"    at ModuleJob.run (node:internal/modules/esm/module_job:413:25)\n"
		"    at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:660:26)\n"
		"    at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:101:5)"
}

See what builtins look like

console.log(toJsodd(Promise, { friendlyNames: mapFriendlyNames({ Symbol }) }))
function Promise(1) {
	unconfigurable unenumerable readonly prototype: {
		unenumerable constructor: .
		unenumerable then(2) {}
		unenumerable catch(1) {}
		unenumerable finally(1) {}
		unenumerable readonly [Symbol.toStringTag]: "Promise"
	}
	unenumerable all(1) {}
	unenumerable allSettled(1) {}
	unenumerable any(1) {}
	unenumerable race(1) {}
	unenumerable resolve(1) {}
	unenumerable reject(1) {}
	unenumerable withResolvers(0) {}
	unenumerable try(1) {}
	unenumerable get [Symbol.species](0) {}
}

Keywords

jsodd

FAQs

Package last updated on 12 Feb 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