https://github.com/seebigs/anything-to-string
Convert ANYTHING in JavaScript to a String
https://github.com/seebigs/anything-to-string
Last synced: 12 months ago
JSON representation
Convert ANYTHING in JavaScript to a String
- Host: GitHub
- URL: https://github.com/seebigs/anything-to-string
- Owner: seebigs
- Created: 2017-04-14T01:11:12.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2018-09-17T04:01:35.000Z (over 7 years ago)
- Last Synced: 2025-06-07T05:35:54.408Z (about 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 3.91 KB
- Stars: 1
- Watchers: 0
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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
```js
var anythingToString = require('anything-to-string');
anythingToString.stringify(document.getElementsByTagName('div')[0]);
// "div#id.class"
```