PHP 8.2.30
Preview: loose-envify.js Size: 791 B
/home/byroehnu/easepay.easetack.com/node_modules/loose-envify/loose-envify.js

'use strict';

var stream = require('stream');
var util = require('util');
var replace = require('./replace');

var jsonExtRe = /\.json$/;

module.exports = function(rootEnv) {
  rootEnv = rootEnv || process.env;
  return function (file, trOpts) {
    if (jsonExtRe.test(file)) {
      return stream.PassThrough();
    }
    var envs = trOpts ? [rootEnv, trOpts] : [rootEnv];
    return new LooseEnvify(envs);
  };
};

function LooseEnvify(envs) {
  stream.Transform.call(this);
  this._data = '';
  this._envs = envs;
}
util.inherits(LooseEnvify, stream.Transform);

LooseEnvify.prototype._transform = function(buf, enc, cb) {
  this._data += buf;
  cb();
};

LooseEnvify.prototype._flush = function(cb) {
  var replaced = replace(this._data, this._envs);
  this.push(replaced);
  cb();
};

Directory Contents

Dirs: 0 × Files: 9

Name Size Perms Modified Actions
127 B lr--r--r-- 2026-03-14 01:49:09
Edit Download
356 B lrw-r--r-- 2026-02-28 00:26:42
Edit Download
83 B lrw-r--r-- 2026-02-28 00:26:52
Edit Download
72 B lrw-r--r-- 2026-02-28 00:27:02
Edit Download
1.07 KB lrw-r--r-- 2026-02-28 00:27:12
Edit Download
791 B lrw-r--r-- 2026-02-28 00:27:22
Edit Download
809 B lrw-r--r-- 2026-02-28 00:26:32
Edit Download
1.05 KB lrw-r--r-- 2026-02-28 00:27:30
Edit Download
1.50 KB lrw-r--r-- 2026-02-28 00:27:34
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).