You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

anything-to-string

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

anything-to-string

Convert ANYTHING in JavaScript to a String. Elements, Objects, Arrays, etc.

1.0.0
latest
Source
npmnpm
Version published
Weekly downloads
136
-58.79%
Maintainers
1
Weekly downloads
 
Created
Source

anything-to-string

Convert ANYTHING in JavaScript to a String

Supports

  • Elements
  • Objects
  • Arrays
  • Window
  • Document
  • Null
  • Undefined
  • jQuery
  • etc.

Install

$ npm install anything-to-string --save

Use

var anythingToString = require('anything-to-string');

anythingToString.stringify(document.getElementsByTagName('div')[0]);
// "div#id.class"

Keywords

tostring

FAQs

Package last updated on 17 Sep 2018

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