Skip to content

Commit

Permalink
add modules key and main eky to package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
njhoffman committed Dec 24, 2021
1 parent 3fe28fb commit 1d3ef4b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
7 changes: 6 additions & 1 deletion index.js
@@ -1,6 +1,7 @@
"use strict"
const stripAnsi = require('strip-ansi')
const getWCwidth = require('wcwidth')

const wcwidth = require('./width')
const {
padRight,
padCenter,
Expand All @@ -10,6 +11,10 @@ const {
truncateString
} = require('./utils')

const wcwidth = function(str) {
return getWCwidth(stripAnsi(str))
}

const DEFAULT_HEADING_TRANSFORM = key => key.toUpperCase()

const DEFAULT_DATA_TRANSFORM = (cell, column, index) => cell
Expand Down
2 changes: 2 additions & 0 deletions package.json
Expand Up @@ -2,6 +2,8 @@
"name": "columnify",
"version": "1.5.5",
"description": "Render data in text columns. Supports in-column text-wrap.",
"main": "columnify.js",
"type": "module",
"scripts": {
"pretest": "npm prune",
"test": "make prepublish && tape test/*.js | tap-spec",
Expand Down
6 changes: 0 additions & 6 deletions width.js

This file was deleted.

0 comments on commit 1d3ef4b

Please sign in to comment.