New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@dmail/uneval

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dmail/uneval

[![npm package](https://img.shields.io/npm/v/@dmail/uneval.svg)](https://www.npmjs.com/package/@dmail/uneval) [![build](https://travis-ci.com/dmail/uneval.svg?branch=master)](http://travis-ci.com/dmail/uneval) [![codecov](https://codecov.io/gh/dmail/uneva

  • 4.4.0
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

uneval

npm package build codecov

Convert a value into a source string

Installing / Getting started

npm install @dmail/uneval
import { uneval } from "@dmail/uneval"

console.log(
  uneval({
    array: [],
    boolean: true,
    date: new Date(7),
    function: (a) => a,
    null: null,
    number: 10,
    regExp: /ok/,
    string: "dmail",
    symbol: Symbol("foo"),
    typeError: new TypeError("cannot read property 0 of undefined"),
    undefined: undefined,
  }),
)

Executing above code logs in the console

{
  "array": [],
  "boolean": true,
  "date": Date(7),
  "function": () => {/* hidden */},
  "null": null,
  "number": 10,
  "regExp": /ok/
  "string": "dmail",
  "symbol": Symbol("foo"),
  "typeError": TypeError("cannot ready property 0 of undefined"),
  "undefined": undefined,
}

Style guide

Prettier and eslint are used to ensure code style and format

API

Licensing

MIT

FAQs

Package last updated on 26 Mar 2019

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

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