pasteparser-js
v1.0.1
Published
Tiny pure javascript library for pasted data to categorize and convert on html page
Downloads
3
Maintainers
Readme
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/[email protected]/pasteparser.min.js"></script>
Usage without options:
PasteParser("#area",null,function(categorizedData){
console.log(categorizedData)
});
Usage with options:
var forExcelParseOptions = {
FirstColumnIsHeader: true,
};
PasteParser("#area",forExcelParseOptions,function(categorizedData){
console.log(categorizedData)
});
var forExcelParseOptions = {
FirstColumnIsHeader: false,
InjectThisHeader:['A','B','C']
};
PasteParser("#area",forExcelParseOptions,function(categorizedData){
console.log(categorizedData)
});