anagram-finder-cli
Advanced tools
Comparing version 1.2.3 to 1.2.4
#!/usr/bin/env node | ||
const { promisify } = require('util'); | ||
const findAnagrams = require('find-anagrams'); | ||
const meow = require('meow'); | ||
const Ora = require('ora'); | ||
const openFile = require('./src/open-file'); | ||
const openFile = promisify(require('fs').readFile); | ||
@@ -30,3 +31,4 @@ const cli = meow( | ||
"tinsel" | ||
] | ||
], | ||
"count": 7 | ||
} | ||
@@ -74,3 +76,3 @@ `, | ||
const data = await openFile(file); | ||
const data = await openFile(file, 'utf8'); | ||
@@ -77,0 +79,0 @@ const words = data.replace('\r').split('\n'); |
{ | ||
"name": "anagram-finder-cli", | ||
"version": "1.2.3", | ||
"version": "1.2.4", | ||
"description": "This CLI makes it possible to search for anagrams from a provided dictionary file", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
5597
6
78