string-service
v1.0.4
Published
A service for manipulating strings.
Downloads
4
Readme
#StringService A service for manipulating strings.
##Installation
npm install -g string-service
##Running
- In general:
string-service
- On specific port:
PORT=3001 string-service
- Tests:
npm test
- Local development version:
npm start
##Routes
GET /
: Returns version informationGET /echo/:input
: Returns the given stringGET /uppercase/:input
: Returns the uppercase version of the given stringGET /lowercase/:input
: Returns the lowercase version of the given stringGET /reverse/:input
: Returns the reversed version of the given stringGET /length/:input
: Returns the length of the given stringGET /leftpad/:input?len={length}&ch={character}
: Runs leftpad on the given string, and returns the result.