at path:
ROOT
/
sistema
/
vendors
/
jszip
/
lib
/
nodejsUtils.js
run:
R
W
Run
generate
DIR
2026-04-09 04:12:40
R
W
Run
nodejs
DIR
2026-04-09 04:12:40
R
W
Run
reader
DIR
2026-04-09 04:12:40
R
W
Run
stream
DIR
2026-04-09 04:12:40
R
W
Run
base64.js
3.31 KB
2018-11-08 02:46:18
R
W
Run
Delete
Rename
compressedObject.js
2.84 KB
2018-11-08 02:46:18
R
W
Run
Delete
Rename
compressions.js
368 By
2018-11-08 02:46:18
R
W
Run
Delete
Rename
crc32.js
1.88 KB
2018-11-08 02:46:18
R
W
Run
Delete
Rename
defaults.js
284 By
2018-11-08 02:46:18
R
W
Run
Delete
Rename
external.js
459 By
2018-11-08 02:46:18
R
W
Run
Delete
Rename
flate.js
2.31 KB
2018-11-08 02:46:18
R
W
Run
Delete
Rename
index.js
1.32 KB
2018-11-08 02:46:18
R
W
Run
Delete
Rename
license_header.js
392 By
2018-11-08 02:46:18
R
W
Run
Delete
Rename
load.js
2.76 KB
2018-11-08 02:46:18
R
W
Run
Delete
Rename
nodejsUtils.js
1.75 KB
2018-11-08 02:46:18
R
W
Run
Delete
Rename
object.js
12.23 KB
2018-11-08 02:46:18
R
W
Run
Delete
Rename
readable-stream-browser.js
427 By
2018-11-08 02:46:18
R
W
Run
Delete
Rename
signature.js
294 By
2018-11-08 02:46:18
R
W
Run
Delete
Rename
support.js
1.06 KB
2018-11-08 02:46:18
R
W
Run
Delete
Rename
utf8.js
7.92 KB
2018-11-08 02:46:18
R
W
Run
Delete
Rename
utils.js
15.31 KB
2018-11-08 02:46:18
R
W
Run
Delete
Rename
zipEntries.js
11.62 KB
2018-11-08 02:46:18
R
W
Run
Delete
Rename
zipEntry.js
11 KB
2018-11-08 02:46:18
R
W
Run
Delete
Rename
zipObject.js
4.42 KB
2018-11-08 02:46:18
R
W
Run
Delete
Rename
error_log
up
📄
nodejsUtils.js
Save
'use strict'; module.exports = { /** * True if this is running in Nodejs, will be undefined in a browser. * In a browser, browserify won't include this file and the whole module * will be resolved an empty object. */ isNode : typeof Buffer !== "undefined", /** * Create a new nodejs Buffer from an existing content. * @param {Object} data the data to pass to the constructor. * @param {String} encoding the encoding to use. * @return {Buffer} a new Buffer. */ newBufferFrom: function(data, encoding) { // XXX We can't use `Buffer.from` which comes from `Uint8Array.from` // in nodejs v4 (< v.4.5). It's not the expected implementation (and // has a different signature). // see https://github.com/nodejs/node/issues/8053 // A condition on nodejs' version won't solve the issue as we don't // control the Buffer polyfills that may or may not be used. return new Buffer(data, encoding); }, /** * Create a new nodejs Buffer with the specified size. * @param {Integer} size the size of the buffer. * @return {Buffer} a new Buffer. */ allocBuffer: function (size) { if (Buffer.alloc) { return Buffer.alloc(size); } else { return new Buffer(size); } }, /** * Find out if an object is a Buffer. * @param {Object} b the object to test. * @return {Boolean} true if the object is a Buffer, false otherwise. */ isBuffer : function(b){ return Buffer.isBuffer(b); }, isStream : function (obj) { return obj && typeof obj.on === "function" && typeof obj.pause === "function" && typeof obj.resume === "function"; } };