string-service

1.0.4 • Public • Published

#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 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.

/string-service/

    Package Sidebar

    Install

    npm i string-service

    Weekly Downloads

    2

    Version

    1.0.4

    License

    MIT

    Last publish

    Collaborators

    • christianalexander