UNPKG

baucis-swagger2

Version:

Generate customizable swagger version 2.0 definitions for your Baucis REST API.

16 lines (14 loc) 315 B
//Module with custom functions // A method for capitalizing the first letter of a string function capitalize (s) { if (!s) { return s; } if (s.length === 1) { return s.toUpperCase(); } return s[0].toUpperCase() + s.substring(1); } module.exports = { capitalize : capitalize };