Skip to content

Commit

Permalink
fix(readme): show correct usage instructions (and update on npm)
Browse files Browse the repository at this point in the history
  • Loading branch information
gadicc committed Feb 4, 2021
1 parent 89550ff commit 03afec8
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,10 @@ $ yahoo-finance search AAPL '{ "someOption": true }'
**Importing**

```js
// Import the entire library or the specific module you need
import { search } from 'yahoo-finance2';
import search from 'yahoo-finance2/api/search';
import yahooFinance from 'yahoo-finance2';

const results = await search('AAPL');
const results = await search('AAPL', { someOption: true, etc });
const results = await yahooFinance.search('AAPL');
const results = await yahooFInance.search('AAPL', { someOption: true, etc });
```

Available modules:
Expand Down

0 comments on commit 03afec8

Please sign in to comment.