UNPKG

@gatling.io/core

Version:

Gatling JS is a JavaScript/TypeScript interface for the [Gatling load testing tool](https://gatling.io/).

9 lines (8 loc) 526 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.readResourceAsString = exports.readResourceAsBytes = void 0; const Resources = Java.type("io.gatling.js.Resources"); const readResourceAsBytes = (filePath) => Resources.readResourceAsBytes(filePath); exports.readResourceAsBytes = readResourceAsBytes; const readResourceAsString = (filePath, charset) => Resources.readResourceAsString(filePath, charset !== undefined ? charset : "utf-8"); exports.readResourceAsString = readResourceAsString;