bs-humps
v0.0.1
Published
humps bindings in Reason
Downloads
5
Readme
bs-humps
humps bindings for BuckleScript in Reason.
Installation
- install bs-humps
$ yarn add bs-humps
# or
$ npm install --save bs-humps
- Add 'bs-humps' to 'bs-dependencies' section of
bsconfig.json
.
Usage
Converting strings
Humps.camelize "hello_world"
(* => helloWorld *)
Humps.decamelize "fooBar"
(* => foo_bar *)
Humps.decamelizeWithOptions "hooBarBaz" @@ Humps.makeOptions separator::"-" ()
(* => foo-bar-baz *)
Development
Build this project.
$ yarn build
Build this project with incremental build.
$ yarn watch
Run test.
$ yarn test
Todo
- [ ] Implement external function definitions for
**Keys(object, options)
API.