GitXplorerGitXplorer
p

camel-to-snake

public
0 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
17af7b876130fe83340abbe8826eec578bca5d32

treat numbers like uppercase letters & lowecase output - v1.1

ppeet committed 9 years ago
Unverified
4580800572610e1e438a6786e3e9620f658f2fa9

v1

ppeet committed 9 years ago
Unverified
dce300a2ed263cfb9cca22da63f95db0dca4013e

Initial commit

ppeet committed 9 years ago

README

The README file for this repository.

camel-to-snake

change a string from camelCase to snake_case

usage

  var toSnake = require('camel-to-snake');

  toSnake('addListener'); // 'add_listener'
  toSnake('getJSON'); // 'get_json'
  toSnake('getJSONObject'); // 'get_json_object'
  toSnake('useSeparator', '-'); // 'use-separator'