Superagent plugin to convert server payload into different cases
superagent plugin that brings you the hability of convert your server payload into different cases
$ npm i superagent-serializer --save
Having the following response
{ "first_name": "Hector", "last-name": "Zarco" }
var request = require('superagent'); var serializer = require('superagent-serializer'); serializer(request, 'camel'); request.get('data.json').send().end(function(err, res) { console.log(res.firstName + ' ' + res.lastName); });
This will convert the output into
{ "firstName": "Zarco", "lastName": "Hector Zarco" }
foo_bar
-> FOO BAR
fooBar
-> foo bar
Foo bar!
-> foo_bar
foo.bar
-> FooBar
foo, bar
-> fooBar
Foo? Bar.
-> foo-bar
Foo-Bar
-> FOO_BAR
foo v. bar
-> Foo v. Bar
foo_v_bar
-> Foo V Bar
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4