index.js
function int64(name) {
  return joi.alternatives().meta({ cql: true, type: name }).try(
    // a string that represents a number that is larger than JavaScript can handle
    joi.string().regex(/^\-?\d{1,19}$/m),
    // any integer that can be represented in JavaScript
    joi.number().integer()
  );
}
function int64(name) {
  return joi.alternatives().meta({ cql: true, type: name }).try(
    // a string that represents a number that is larger than JavaScript can handle
    joi.string().regex(/^\-?\d{1,19}$/m),
    // any integer that can be represented in JavaScript
    joi.number().integer()
  );
}
function int64 ( name ) { return joi . alternatives ( ) . meta ( { cql : true , type : name } ) . try ( // a string that represents a number that is larger than JavaScript can handle joi . string ( ) . regex ( / ^\-?\d{1,19}$ / m ) , // any integer that can be represented in JavaScript joi . number ( ) . integer ( ) ) ; }
Used for creating Int64 with string and number alternative formats

@param {String} name - the type of int64 value
@returns {Joi} - the validator
Used for creating Int64 with string and number alternative formats