From d6cf6463f1398af8c3bc6c7fdc900d4b94c76826 Mon Sep 17 00:00:00 2001 From: Wael TELLAT Date: Fri, 8 Mar 2019 23:20:15 +0000 Subject: [PATCH] v1.0.0 to npm registry --- README.md | 2 +- index.js | 4 ++-- package-lock.json | 2 +- package.json | 15 ++++++++++++--- 4 files changed, 16 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index bc6f3b8..abea75d 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ js module to convert numbers to words ## Install ``` -npm install forzagreen/n2words +npm install --save n2words ``` ## Usage diff --git a/index.js b/index.js index f7478ab..98872f7 100644 --- a/index.js +++ b/index.js @@ -1,5 +1,5 @@ "use strict"; -exports = module.exports = num2words; +exports = module.exports = n2words; const supportedLanguages = ['en', 'fr', 'es'] @@ -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 diff --git a/package-lock.json b/package-lock.json index 8faa384..e13f635 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "n2words", - "version": "0.0.1", + "version": "1.0.0", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 4930010..a20ff2d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "n2words", - "version": "0.0.1", + "version": "1.0.0", "description": "Convert numbers to words", "main": "index.js", "scripts": { @@ -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" },