pasteparser-js

1.0.1 • Public • Published

pasteparser

PasterParser.js

Tiny pure javascript library for pasted data to categorize and convert on html page

You can include to your project using npm

npm i pasteparser-js

or you can directly include your page using:

<script src="https://unpkg.com/pasteparser-js@1.0.0/pasteparser.min.js"></script>

Usage without options:

        PasteParser("#area",null,function(categorizedData){
            console.log(categorizedData)
        });

alt text

Usage with options:

var forExcelParseOptions = {
            FirstColumnIsHeader: true,
        };
        PasteParser("#area",forExcelParseOptions,function(categorizedData){
            console.log(categorizedData)
        });

alt text

var forExcelParseOptions = {
            FirstColumnIsHeader: false,
            InjectThisHeader:['A','B','C']
        };
        PasteParser("#area",forExcelParseOptions,function(categorizedData){
            console.log(categorizedData)
        });

alt text

Package Sidebar

Install

npm i pasteparser-js

Weekly Downloads

1

Version

1.0.1

License

ISC

Unpacked Size

14.1 kB

Total Files

4

Last publish

Collaborators

  • cancmrt