Regenerating node_modules
This commit is contained in:
parent
09b4a82c83
commit
c96f84308a
5488 changed files with 487362 additions and 60779 deletions
17
node_modules/table/dist/calculateCellWidthIndex.js.flow
generated
vendored
Normal file
17
node_modules/table/dist/calculateCellWidthIndex.js.flow
generated
vendored
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
import stringWidth from 'string-width';
|
||||
|
||||
/**
|
||||
* Calculates width of each cell contents.
|
||||
*
|
||||
* @param {string[]} cells
|
||||
* @returns {number[]}
|
||||
*/
|
||||
export default (cells) => {
|
||||
return cells.map((value) => {
|
||||
return Math.max(
|
||||
...value.split('\n').map((line) => {
|
||||
return stringWidth(line);
|
||||
})
|
||||
);
|
||||
});
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue