pg3d-autocorrect
Advanced tools
Comparing version 1.0.7 to 1.0.8
@@ -5,8 +5,9 @@ var fs = require('fs') | ||
var readDictionary = function(path) { | ||
exports.readDictionary = function(path) { | ||
path || (path = wordListPath) | ||
return fs.readFileSync(path).toString().trim().split('\n') | ||
} | ||
var autocorrect = function(options) { | ||
exports.gadgetAutocorrect = function(options) { | ||
options || (options = {}) | ||
@@ -34,3 +35,1 @@ var dictionary = options.words || readDictionary(options.dictionary) | ||
} | ||
module.exports = gadgetAutocorrect |
@@ -5,3 +5,3 @@ var fs = require('fs') | ||
var readDictionary = function(path) { | ||
exports.readDictionary = function(path) { | ||
path || (path = wordListPath) | ||
@@ -11,3 +11,3 @@ return fs.readFileSync(path).toString().trim().split('\n') | ||
var autocorrect = function(options) { | ||
exports.gunautocorrect = function(options) { | ||
options || (options = {}) | ||
@@ -14,0 +14,0 @@ var dictionary = options.words || readDictionary(options.dictionary) |
{ | ||
"name": "pg3d-autocorrect", | ||
"version": "1.0.7", | ||
"version": "1.0.8", | ||
"description": "Pixel Gun 3d Encyclopedia package helper(autocorrect)", | ||
@@ -5,0 +5,0 @@ "license": "ISC", |
8559
186