Skip to content

Commit

Permalink
v1.0.0 to npm registry
Browse files Browse the repository at this point in the history
  • Loading branch information
forzagreen committed Mar 8, 2019
1 parent bb7fb50 commit d6cf646
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ js module to convert numbers to words
## Install

```
npm install forzagreen/n2words
npm install --save n2words
```

## Usage
Expand Down
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"use strict";
exports = module.exports = num2words;
exports = module.exports = n2words;


const supportedLanguages = ['en', 'fr', 'es']
Expand All @@ -10,7 +10,7 @@ const supportedLanguages = ['en', 'fr', 'es']
* @param {Number} n The number to convert
*/

function num2words(n, options) {
function n2words(n, options) {
var lang = "EN"; // default language
if (options) {
if(options.lang) { // lang is given in options
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 12 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "n2words",
"version": "0.0.1",
"version": "1.0.0",
"description": "Convert numbers to words",
"main": "index.js",
"scripts": {
Expand All @@ -12,10 +12,19 @@
"url": "git+https://github.com/forzagreen/n2words.git"
},
"keywords": [
"n2words"
"n2words",
"convert",
"number",
"word",
"text",
"natural",
"language",
"english",
"french",
"spanish"
],
"author": "Wael TELLAT",
"license": "ISC",
"license": "MIT",
"bugs": {
"url": "https://github.com/forzagreen/n2words/issues"
},
Expand Down

0 comments on commit d6cf646

Please sign in to comment.