webssh2/app/server/util.js
2021-05-19 19:23:22 +00:00

8 lines
242 B
JavaScript

/* jshint esversion: 6, asi: true, node: true */
// util.js
// private
// takes a string, makes it boolean (true if the string is true, false otherwise)
exports.parseBool = function parseBool(str) {
return str.toLowerCase() === 'true';
};