UNPKG

@eplata/utils

Version:

Modulo que contiene funciones generales para tratamiento de datos.

11 lines (10 loc) 493 B
const tryParseInt = require('./try-parse-int'); const tryParseFloat = require('./try-parse-float'); const tryConvertToBoolean = require('./try-convert-to-boolean'); const addPathParams = require('./add-path-params'); module.exports = { tryParseInt: (str, strict = false) => tryParseInt(str, strict), tryParseFloat: (str, strict = false) => tryParseFloat(str, strict), tryConvertToBoolean: (str, strict = false) => tryConvertToBoolean(str, strict), bindParams: addPathParams };