initial commit - far from runnable
This commit is contained in:
commit
db057ce342
8614 changed files with 1032171 additions and 0 deletions
10
node_modules/jws/lib/tostring.js
generated
vendored
Normal file
10
node_modules/jws/lib/tostring.js
generated
vendored
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
/*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);
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue