@xlork/core
Advanced tools
Comparing version 2.0.1 to 2.0.3
{ | ||
"name": "@xlork/core", | ||
"version": "2.0.1", | ||
"version": "2.0.3", | ||
"description": "XLork is a powerful Node.js/ Vanilla js package for parsing and manipulating CSV and XML files. With its intuitive API, XLork makes it easy to read, write, and modify CSV and XML data in your Node.js applications. Whether you're dealing with large datasets or just need to perform some quick data transformations, XLork has you covered. Plus, with its comprehensive documentation and responsive community support, XLork is the perfect choice for developers looking to work with CSV and XML data in Node.js. Install XLork today and start parsing and manipulating your data with ease!", | ||
@@ -5,0 +5,0 @@ "author": "Shavron", |
## xlork | ||
XLork is a powerful Node.js/ Vanilla js package for parsing and manipulating CSV and XML files. With its intuitive API, XLork makes it easy to read, write, and modify CSV and XML data in your Node.js applications. Whether you're dealing with large datasets or just need to perform some quick data transformations, XLork has you covered. Plus, with its comprehensive documentation and responsive community support, XLork is the perfect choice for developers looking to work with CSV and XML data in Node.js. Install XLork today and start parsing and manipulating your data with ease! | ||
XLork is a powerful Node.js package for parsing and manipulating CSV and XML files. With its intuitive API, XLork makes it easy to read, write, and modify CSV and XML data in your Node.js applications. Whether you're dealing with large datasets or just need to perform some quick data transformations, XLork has you covered. Plus, with its comprehensive documentation and responsive community support, XLork is the perfect choice for developers looking to work with CSV and XML data in Node.js. Install XLork today and start parsing and manipulating your data with ease! | ||
> Pure javascript adapter for xlork importer. | ||
> React adapter for xlork.com | ||
## Installation / Import | ||
<script src="https://unpkg.com/@xlork/core/dist/index.min.js"></script> | ||
First, install the dependency via npm: | ||
```js | ||
npm i @xlork/react | ||
``` | ||
## Examples | ||
Try our example in [CodeSandbox](https://codesandbox.io/s/xlork-javascript-ufrr1y). | ||
Try our example in [CodeSandbox](https://codesandbox.io/s/xlork-react-latest-exvsu1). | ||
@@ -25,43 +28,63 @@ ## Readme | ||
```javascript | ||
const config = { | ||
licenseKey: 'U264Y-OQDB2-QRZJB-ZTL1P-I21FF', | ||
user: { | ||
email: 'jhon@xlork.com', | ||
name: 'Jhon', | ||
}, | ||
settings: { | ||
title: 'Address', | ||
import { XLorkClient } from '@xlork/react'; | ||
<XLorkClient | ||
licenseKey="XXXX-XXXX-XXXX-XXXX" | ||
preload={false} | ||
user={{ | ||
email: 'example@xlork.com', | ||
name: 'xlork-demo', | ||
}} | ||
settings={{ | ||
title: 'Upload data', | ||
columns: [ | ||
{ | ||
label: 'Invoice date', | ||
key: 'address', | ||
label: 'Customer Name', | ||
key: 'customer_name', | ||
type: 'text', | ||
validators: { | ||
type: 'required', | ||
regexMatches: '^[0-9]{10}$', | ||
error: 'Name can not be blank', | ||
}, | ||
}, | ||
{ | ||
label: 'Retailer Code', | ||
key: 'latitude', | ||
label: 'Customer Mobile', | ||
key: 'customer_mobile_number', | ||
type: 'numeric', | ||
validators: { | ||
regexMatches: '^[0-9]{10}$', | ||
error: 'Please input 10 digit no.', | ||
}, | ||
}, | ||
{ | ||
label: 'SKU Code', | ||
key: 'longitude', | ||
label: 'Email', | ||
key: 'email', | ||
type: 'email', | ||
}, | ||
{ | ||
label: 'Product Quantity (CFC)', | ||
key: 'state', | ||
label: 'Date', | ||
key: 'date', | ||
type: 'date', | ||
dateFormat: 'DD-MM-YYYY', | ||
}, | ||
], | ||
theme: 'AQUA', | ||
theme: 'SUNFLOWER', | ||
maxRecords: 20, | ||
allowInvalidSubmit: true, | ||
maxRecords: 50, | ||
}, | ||
onComplete: (response) => { | ||
console.log('[onComplete]', response); | ||
}, | ||
onCancel: () => { | ||
console.log('[onCancel]'); | ||
}, | ||
}; | ||
const XLork = new xLorkClient(config); | ||
Xlork.init(); | ||
}} | ||
onComplete={async (response) => { | ||
console.log(response); | ||
}} | ||
onCancel={() => { | ||
console.log('onCancel - ----'); | ||
}} | ||
loadOnDemand={(init) => { | ||
return ( | ||
<button className="btn btn-primary extra_margin" onClick={init}> | ||
Upload Data | ||
</button> | ||
); | ||
}} | ||
/> | ||
``` | ||
@@ -68,0 +91,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8710
96