UNPKG
azure
Version:
latest (2.3.1-preview)
2.3.1-preview
2.3.0-preview
2.2.1-preview
2.2.0-preview
2.1.0-preview
2.0.0-preview
1.2.0-preview
1.1.1-preview
1.1.0-preview
0.10.6
0.10.5
0.10.4
0.10.3
0.10.2
0.10.1
0.10.0
0.9.16
0.9.15
0.9.14
0.9.13
0.9.12
0.9.11
0.9.10
0.9.9
0.9.8
0.9.7
0.9.6
0.9.5
0.9.4
0.9.3
0.9.2
0.8.1
0.8.0
0.7.19
0.7.18
0.7.17
0.7.16
0.7.15
0.7.14
0.7.13
0.7.12
0.7.11
0.7.10
0.7.9
0.7.8
0.7.7
0.7.6
0.7.5
0.7.4
0.7.3
0.7.2
0.7.1
0.7.0
0.6.11
0.6.10
0.6.9
0.6.9-zumo
0.6.8
0.6.7
0.6.6
0.6.5
0.6.4
0.6.3
0.6.2
0.6.1
0.6.0
0.5.3
0.5.2
0.5.1
0.5.0
Microsoft Azure Client Library for node
github.com/azure/azure-sdk-for-node
azure/azure-sdk-for-node
azure
/
lib
/
services
/
eventgrid
/
node_modules
/
jws
/
lib
/
tostring.js
11 lines
(9 loc)
•
262 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
/*global module*/
var
Buffer
=
require
(
'buffer'
).
Buffer
;
module
.
exports
=
function
toString
(
obj
) {
if
(
typeof
obj ===
'string'
)
return
obj;
if
(
typeof
obj ===
'number'
||
Buffer
.
isBuffer
(obj))
return
obj.
toString
();
return
JSON
.
stringify
(obj); };