https://github.com/bsgbryan/numberator
Convert a string to a number
https://github.com/bsgbryan/numberator
Last synced: 9 months ago
JSON representation
Convert a string to a number
- Host: GitHub
- URL: https://github.com/bsgbryan/numberator
- Owner: bsgbryan
- License: mit
- Created: 2014-09-06T17:17:59.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-09-06T17:34:47.000Z (over 11 years ago)
- Last Synced: 2025-02-10T03:46:02.235Z (11 months ago)
- Language: CoffeeScript
- Size: 97.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Overview
========
This is a very simple module to convert a string of text to a number.
It uses a decaying algorithm to add value the the generated number. The value
for letters in the string decreases as you move to the right - meaning the
left-most letters will have a greater impact of the output number than the
right-most letters.
How to use
==========
```javascript
var numberator = require('numberator')
var output_number = numberator('WHEEEEEE!')
```