Skip to content

Commit

Permalink
fixed transipiling errors
Browse files Browse the repository at this point in the history
  • Loading branch information
njhoffman committed Dec 24, 2021
1 parent a27ddb8 commit 5cb6515
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -3,6 +3,7 @@
"version": "1.5.8",
"description": "Render data in text columns. Supports in-column text-wrap.",
"main": "columnify.js",
"type": "commonjs",
"scripts": {
"pretest": "npm prune",
"test": "make prepublish && tape test/*.js | tap-spec",
Expand Down
4 changes: 2 additions & 2 deletions strip-ansi.js → strip-ansi.mjs
@@ -1,6 +1,6 @@
const ansiRegex = require('ansi-regex');
import ansiRegex from 'ansi-regex'

module.exports = function stripAnsi(string) {
export default function stripAnsi(string) {
if (typeof string !== 'string') {
throw new TypeError(`Expected a \`string\`, got \`${typeof string}\``);
}
Expand Down

0 comments on commit 5cb6515

Please sign in to comment.