Sign inSign up

christianalexander/string-service

By christianalexander

Updated over 10 years ago

A service for manipulating strings.

Image
1

367

christianalexander/string-service repository overview

Build Status

#StringService A service for manipulating strings.

##Installation

  • Local command line: npm install -g string-service
  • Docker: docker pull christianalexander/string-service

##Running

  • In general: string-service
  • On specific port: PORT=3001 string-service
  • Tests: npm test
  • Local development version: npm start
  • Docker: docker run -d -p 8080:8080 christianalexander/string-service

##Routes

  • GET /: Returns version information
  • GET /echo/:input: Returns the given string
  • GET /uppercase/:input: Returns the uppercase version of the given string
  • GET /lowercase/:input: Returns the lowercase version of the given string
  • GET /reverse/:input: Returns the reversed version of the given string
  • GET /length/:input: Returns the length of the given string
  • GET /leftpad/:input?len={length}&ch={character}: Runs leftpad on the given string, and returns the result.

Tag summary

Content type

Image

Digest

Size

15.2 MB

Last updated

over 10 years ago

docker pull christianalexander/string-service