bs-humps

0.0.1 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i bs-humps

Weekly Downloads

2

Version

0.0.1

License

MIT

Last publish

Collaborators

  • yamadayuki