Skip to content

yamadayuki/bs-humps

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bs-humps

humps bindings for BuckleScript in Reason.

Installation

  1. install bs-humps
$ yarn add bs-humps

# or
$ npm install --save bs-humps
  1. 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.

About

humps bindings in Reason

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages