@xlork/core
Advanced tools
Comparing version 2.0.4 to 2.0.5
{ | ||
"name": "@xlork/core", | ||
"version": "2.0.4", | ||
"version": "2.0.5", | ||
"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 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/ 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! | ||
> React adapter for xlork.com | ||
> Pure javascript adapter for xlork importer. | ||
## Installation / Import | ||
First, install the dependency via npm: | ||
<script src="https://unpkg.com/@xlork/core/dist/index.min.js"></script> | ||
```js | ||
npm i @xlork/react | ||
``` | ||
## Examples | ||
Try our example in [CodeSandbox](https://codesandbox.io/s/xlork-react-latest-exvsu1). | ||
Try our example in [CodeSandbox](https://codesandbox.io/s/xlork-javascript-ufrr1y). | ||
@@ -28,63 +25,43 @@ ## Readme | ||
```javascript | ||
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', | ||
const config = { | ||
licenseKey: 'U264Y-OQDB2-QRZJB-ZTL1P-I21FF', | ||
user: { | ||
email: 'jhon@xlork.com', | ||
name: 'Jhon', | ||
}, | ||
settings: { | ||
title: 'Address', | ||
columns: [ | ||
{ | ||
label: 'Customer Name', | ||
key: 'customer_name', | ||
type: 'text', | ||
validators: { | ||
type: 'required', | ||
regexMatches: '^[0-9]{10}$', | ||
error: 'Name can not be blank', | ||
}, | ||
label: 'Invoice date', | ||
key: 'address', | ||
}, | ||
{ | ||
label: 'Customer Mobile', | ||
key: 'customer_mobile_number', | ||
type: 'numeric', | ||
validators: { | ||
regexMatches: '^[0-9]{10}$', | ||
error: 'Please input 10 digit no.', | ||
}, | ||
label: 'Retailer Code', | ||
key: 'latitude', | ||
}, | ||
{ | ||
label: 'Email', | ||
key: 'email', | ||
type: 'email', | ||
label: 'SKU Code', | ||
key: 'longitude', | ||
}, | ||
{ | ||
label: 'Date', | ||
key: 'date', | ||
type: 'date', | ||
dateFormat: 'DD-MM-YYYY', | ||
label: 'Product Quantity (CFC)', | ||
key: 'state', | ||
}, | ||
], | ||
theme: 'SUNFLOWER', | ||
maxRecords: 20, | ||
theme: 'AQUA', | ||
allowInvalidSubmit: true, | ||
}} | ||
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> | ||
); | ||
}} | ||
/> | ||
maxRecords: 50, | ||
}, | ||
onComplete: (response) => { | ||
console.log('[onComplete]', response); | ||
}, | ||
onCancel: () => { | ||
console.log('[onCancel]'); | ||
}, | ||
}; | ||
const XLork = new xLorkClient(config); | ||
Xlork.init(); | ||
``` | ||
@@ -91,0 +68,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
8150
73