All Projects → kevva → obj-to-table

kevva / obj-to-table

Licence: MIT license
Create a table from an array of objects

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to obj-to-table

DTE
Generate C# class from database table
Stars: ✭ 26 (+73.33%)
Mutual labels:  object, table
Moses
Utility library for functional programming in Lua
Stars: ✭ 541 (+3506.67%)
Mutual labels:  object, table
DataTypes
Built-in data types
Stars: ✭ 34 (+126.67%)
Mutual labels:  string, object
Stringfication
🔨 Make all objects to String!
Stars: ✭ 33 (+120%)
Mutual labels:  string, object
utils.js
👷 🔧 zero dependencies vanilla JavaScript utils.
Stars: ✭ 14 (-6.67%)
Mutual labels:  string, object
prototyped.js
Some common Typescript prototypes
Stars: ✭ 22 (+46.67%)
Mutual labels:  string, object
is-string
Is this value a JS String object or primitive? This module works cross-realm/iframe, and despite ES6 @@toStringTag.
Stars: ✭ 17 (+13.33%)
Mutual labels:  string, object
Kind Of
Get the native JavaScript type of a value, fast. Used by superstruct, micromatch and many others!
Stars: ✭ 268 (+1686.67%)
Mutual labels:  string, object
php-helpers
An extensive set of PHP helper functions and classes.
Stars: ✭ 27 (+80%)
Mutual labels:  string, object
Table-Detection-using-Deep-Learning
Table Detection using Deep Learning
Stars: ✭ 24 (+60%)
Mutual labels:  table
gnirts
Obfuscate string literals in JavaScript code.
Stars: ✭ 65 (+333.33%)
Mutual labels:  string
react-native-simple-table
A simple table for react native.
Stars: ✭ 32 (+113.33%)
Mutual labels:  table
agel-table
element-ui table 的二次封装,保持灵活性,极简的思想,更少的代码,更多的功能,更快速的开发 ⬆⬆⬆
Stars: ✭ 26 (+73.33%)
Mutual labels:  table
BeeGridTable
BeeGridTable , is a Highly Customizable Table UI component library based on Vue.js. Rich functions、More efficient、Easy to use!
Stars: ✭ 45 (+200%)
Mutual labels:  table
Competitive Programming
Programming👨‍💻 Questions on BinarySearch💻, LeetCode💻, CodeChef💻, Codeforces💻,DSA 450
Stars: ✭ 188 (+1153.33%)
Mutual labels:  string
SmartReplace
Unity plug-in for replacing scene objects while keeping their references.
Stars: ✭ 50 (+233.33%)
Mutual labels:  object
Logolas
R package for Enrichment Depletion Logos (EDLogos) and String Logos
Stars: ✭ 25 (+66.67%)
Mutual labels:  string
wikitable2csv
A web tool to convert Wiki tables to CSV 📈
Stars: ✭ 112 (+646.67%)
Mutual labels:  table
is-primitive
Is the typeof value a javascript primitive?
Stars: ✭ 35 (+133.33%)
Mutual labels:  string
python-realtime-table
Building realtime table using Python and Channels
Stars: ✭ 12 (-20%)
Mutual labels:  table

obj-to-table Build Status

Create a table from an array of objects

Install

$ npm install --save obj-to-table

Usage

const objToTable = require('obj-to-table');

const table = objToTable([{
	foo: 'bar',
	cat: 'meow',
	unicorn: 'moo'
}, {
	foo: 'crow',
	cat: 'eek',
	unicorn: 'buzz'
}, {
	foo: 'ow',
	cat: 'hee-haw',
	unicorn: 'hum'
}]);

console.log(table.toString());

/*
┌──────────────┬──────────────┬──────────────┐
│ foo          │ cat          │ unicorn      │
├──────────────┼──────────────┼──────────────┤
│ bar          │ meow         │ moo          │
├──────────────┼──────────────┼──────────────┤
│ crow         │ eek          │ buzz         │
├──────────────┼──────────────┼──────────────┤
│ ow           │ hee-haw      │ hum          │
└──────────────┴──────────────┴──────────────┘
*/

API

objToTable(data, [options])

data

Type: Array Object

An array of objects containing your data.

options

Type: Object

See the cli-table options.

License

MIT © Kevin Martensson

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].