Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/squiidz/rusty_camel
Ruby snake to camel in rust
https://github.com/squiidz/rusty_camel
camelcase gem ruby rubynlp rust snakecase
Last synced: 23 days ago
JSON representation
Ruby snake to camel in rust
- Host: GitHub
- URL: https://github.com/squiidz/rusty_camel
- Owner: squiidz
- Created: 2017-05-02T20:35:20.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-05-02T20:44:42.000Z (over 7 years ago)
- Last Synced: 2024-10-06T19:16:37.916Z (about 1 month ago)
- Topics: camelcase, gem, ruby, rubynlp, rust, snakecase
- Language: Rust
- Size: 146 KB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Rusty Camel
Ruby snake to camel in rust### Example
``` ruby
require 'rusty_camel'"some_snake_case_string".camelcase
"someCamelCaseString".snakecase```
### Benchmark
Converting 50k rails accounts in json format
```
To camel case
user system total real
Rust 0.970000 0.080000 1.050000 ( 1.056655)
Ruby 9.940000 0.360000 10.300000 ( 10.363646)To snake case
user system total real
Rust 1.100000 0.100000 1.200000 ( 1.208300)
Ruby 10.960000 0.430000 11.390000 ( 11.404156)
```