Comparing version 1.2.0 to 1.2.1
@@ -151,2 +151,6 @@ let fs = require('fs'); | ||
getKeys () { | ||
return this.keys; | ||
} | ||
getOne ({ gender = Genders.Any, output = OutputFormat.Set, exclude = new Set(), delimiter = ' ', format = StringFormat.NoFormat } = {}) { | ||
@@ -153,0 +157,0 @@ let self = this; |
{ | ||
"name": "nvrng", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "Not very random temporary name generator", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -29,3 +29,3 @@ [![Codecov Coverage](https://img.shields.io/codecov/c/github/ssypachev/nvrng/master.svg?style=flat-square)](https://codecov.io/gh/ssypachev/nvrng/) | ||
Please, make pull request to find any errors in words or if you have any other vocabulary to suggest. | ||
Please, make pull request if found any errors or if you have any other vocabulary to suggest. | ||
@@ -92,2 +92,12 @@ ## Methods | ||
#### getKeys => Array | ||
Returns array of keys available for uploaded vocabulary | ||
```js | ||
const filename = __dirname + '/../examples/gender.json'; | ||
err = gen.upload(filename); | ||
console.log(gen.getKeys()); //[ 'f', 'm', 'n' ] | ||
``` | ||
## Vocabulary | ||
@@ -94,0 +104,0 @@ Vocabulary is a json object which contains one or more objects ("spaces") with |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20554
212
184