How to use the default function from util

Find comprehensive JavaScript util.default code examples handpicked from public code repositorys.

33
34
35
36
37
38
39
40
41
42
43
44
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
const dnsLookupAsync = _util.default.promisify(_dns.default.lookup); // https://tools.ietf.org/html/rfc1928




var SocksAuth;

fork icon0
star icon0
watch icon1

140
141
142
143
144
145
146
147
148
149
exports.GPTDB = void 0;
var fs_1 = __importDefault(require('fs'));
var util_1 = __importDefault(require('util'));
var utils_1 = require('./utils');
var readFile = util_1.default.promisify(fs_1.default.readFile);
var writeFile = util_1.default.promisify(fs_1.default.writeFile);
var GPTDB = function (filePath, initialData) {
  if (initialData === void 0) {
    initialData = {};
  }
fork icon0
star icon0
watch icon1