New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

array-to-table

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

array-to-table

Generate markdown table from array of objects

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
11K
decreased by-8.49%
Maintainers
1
Weekly downloads
 
Created
Source

Array to Table

Convert an array of objects to a simple markdown table.

version License Downloads Dependencies

Install

  • Download the latest package
  • NPM: npm install array-to-table

Usage

Node.js / Browserify

var arrayToTable = require('array-to-table')

Example

Input

arrayToTable([{
  Id: '004',
  Icon: '![004](http://www.psypokes.com/dex/picdex/minis/004.png)',
  Name: 'Charmander',
},{
  Id: '005',
  Icon: '![005](http://www.psypokes.com/dex/picdex/minis/005.png)',
  Name: 'Charmeleon',
},{
  Id: '006',
  Icon: '![006](http://www.psypokes.com/dex/picdex/minis/006.png)',
  Name: 'Charizard',
},{
  Id: '151',
  Icon: '![151](http://www.psypokes.com/dex/picdex/minis/151.png)',
  Name: 'Mew'
}])

Output

IdIconName
004004Charmander
005005Charmeleon
006006Charizard
151151Mew

License

Licensed under The MIT License.

Keywords

FAQs

Package last updated on 31 Jul 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc