mirror of
https://github.com/MingweiSamuel/Riven.git
synced 2025-01-14 21:07:26 -08:00
74eb5fa045
- `example/proxy` is new folder for `example_proxy`. - `riven` is new folder for the main riven lib. - Updated metadata to be an array and include HTTP method.
12 lines
225 B
JavaScript
12 lines
225 B
JavaScript
var noCase = require('no-case')
|
|
|
|
/**
|
|
* Snake case a string.
|
|
*
|
|
* @param {string} value
|
|
* @param {string} [locale]
|
|
* @return {string}
|
|
*/
|
|
module.exports = function (value, locale) {
|
|
return noCase(value, locale, '_')
|
|
}
|