diff --git a/README.md b/README.md index 186aca6..740ce33 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ > _Find the method you need without digging through the docs! ✨_ -When I was first learning array and object methods, I spent a lot of time digging through the docs to find the appropriate one, and I had to search one by one. I made this resource to help people find the correct object method a bit more naturally. You can narrow down what you want to do and explore until you find what's most useful to you. +When I first started learning array and object methods, I spent a lot of time digging through the docs to find the appropriate one, and I had to search one by one. I made this resource to help people find the correct object method a bit more naturally. You can narrow down what you want to do and explore until you find what's most useful to you. ![js-explorer-demo](https://user-images.githubusercontent.com/2281088/124371705-9e321780-dc41-11eb-9624-d6e33f00334d.gif) diff --git a/bin/store.js b/bin/store.js index 550c086..e678723 100644 --- a/bin/store.js +++ b/bin/store.js @@ -3,7 +3,7 @@ import Configstore from 'configstore'; import path from 'path' import { fileURLToPath } from 'url' -const __dirname = path.dirname(fileURLToPath(import.meta.url)); -const packageJson = JSON.parse(fs.readFileSync(path.resolve(__dirname,'../package.json'), 'utf8')); +const dirname = path.dirname(fileURLToPath(import.meta.url)); +const packageJson = JSON.parse(fs.readFileSync(path.resolve(dirname,'../package.json'), 'utf8')); export const store = new Configstore(packageJson.name, {init: true})