Skip to content

Commit

Permalink
Replace require by import
Browse files Browse the repository at this point in the history
  • Loading branch information
nipher committed Jan 12, 2017
1 parent 4872a7d commit 48d5d4c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions src/options/optCurrency.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const axios = require('axios');
const chalk = require('chalk');
const emoji = require('node-emoji');
import axios from 'axios';
import chalk from 'chalk';
import emoji from 'node-emoji';

const emojis = {
USD: 'flag-us',
Expand Down
4 changes: 2 additions & 2 deletions src/options/optDefinition.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const axios = require('axios');
const chalk = require('chalk');
import axios from 'axios';
import chalk from 'chalk';

const wordsAPIPrefix = 'https://api.pearson.com/v2/dictionaries/ldoce5/entries?';
const KEYS = {
Expand Down
8 changes: 4 additions & 4 deletions src/options/optIP.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const axios = require('axios');
const chalk = require('chalk');
const ora = require('ora');
const os = require('os');
import axios from 'axios';
import chalk from 'chalk';
import ora from 'ora';
import os from 'os';

const spinner = ora({
text: 'Loading IPs',
Expand Down

0 comments on commit 48d5d4c

Please sign in to comment.