Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Converts numbers to their Spanish representation
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.

Spanish Number Translator

The translator module exports a single method, translate, that accepts an integer between -9999 and 9999 and returns its Spanish translation.


translator = require('translator')
translator.translate(87) # 'ochenta y siete'


These instructions assume that node.js and npm are installed.

  1. If the CoffeeScript node module isn't installed, install it with npm install -g coffee-script (you might need root permissions)
  2. git clone
  3. cd number_translator
  4. npm install jasmine-node
  5. jasmine-node --verbose --coffee
Something went wrong with that request. Please try again.