paste-table

1.1.1 • Public • Published

totable

NPM version Downloads Dependency Status

Installation

npm i totable

Usage

Try it online

var PasteTable = require('paste-table')

PasteTable.onpaste(element, function(err, table) {
	if (!err) {
		var markdown = table.markdown()
		console.log(markdown)
	}
})

| paste-table need jQuery

UI

transfer table format

  • .markdown() return GFM table markdown text string
  • .element() return table element
  • .console() use console.table to print table in console
  • .html() return raw html text
  • .json() return inside table value by json object
  • .confluence() return confluence wiki markup

License

License

Readme

Keywords

none

Package Sidebar

Install

npm i paste-table

Weekly Downloads

1

Version

1.1.1

License

ISC

Last publish

Collaborators

  • ftft1885