humps bindings for BuckleScript in Reason.
$ yarn add bs-humps
# or
$ npm install --save bs-humps
bsconfig.json
.Converting strings
Humps.camelize(
"hello_world",
/* => helloWorld */
Humps.decamelize,
"fooBar",
/* => foo_bar */
Humps.decamelizeWithOptions,
"hooBarBaz",
) @@
[Humps.makeOptions(separator), ..."-"()];
/* => foo-bar-baz */
Humps.camelize "hello_world"
(* => helloWorld *)
Humps.decamelize "fooBar"
(* => foo_bar *)
Humps.decamelizeWithOptions "hooBarBaz" @@ Humps.makeOptions separator::"-" ()
(* => foo-bar-baz *)
Build this project.
$ yarn build
Build this project with incremental build.
$ yarn watch
Run test.
$ yarn test
**Keys(object, options)
API.