{"_id":"luckyexcel","_rev":"2-a47e3da26e19c0caf714fee1c9deb4cf","name":"luckyexcel","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"luckyexcel","version":"1.0.0","description":"An excel import and export library adapted to Luckysheet","main":"dist/luckyexcel.cjs.js","module":"dist/luckyexcel.esm.js","browser":"dist/luckyexcel.umd.js","scripts":{"build":"gulp build","dev":"gulp dev"},"keywords":["Luckysheet","excel"],"author":{"name":"msoffice2@126.com"},"homepage":"https://github.com/mengshukeji/Luckyexcel","repository":{"type":"git","url":"git+https://github.com/mengshukeji/Luckyexcel.git"},"license":"MIT","devDependencies":{"@babel/core":"^7.10.5","@babel/preset-env":"^7.10.4","@babel/preset-typescript":"^7.10.4","@rollup/plugin-typescript":"^6.1.0","@types/node":"^14.14.2","babelify":"^10.0.0","browser-sync":"^2.26.10","browserify":"^16.5.1","delete":"^1.1.0","fancy-log":"^1.3.3","gulp":"^4.0.2","gulp-sourcemaps":"^2.6.5","gulp-typescript":"^6.0.0-alpha.1","gulp-uglify":"^3.0.2","gulp-util":"^3.0.8","rollup":"^2.33.1","rollup-plugin-typescript2":"^0.29.0","tsify":"^4.0.2","tslib":"^2.0.3","typescript":"^3.9.7","vinyl-buffer":"^1.0.1","vinyl-source-stream":"^2.0.0","watchify":"^3.11.1"},"dependencies":{"jszip":"^3.5.0"},"gitHead":"d98729833640b32ed6be1c219b856c9d114dc27f","bugs":{"url":"https://github.com/mengshukeji/Luckyexcel/issues"},"_id":"luckyexcel@1.0.0","_nodeVersion":"12.18.4","_npmVersion":"6.14.6","dist":{"integrity":"sha512-o1BNpSLWuudg+MLirl6THtuiBvMdDxSnp0wPkSJcOxpnSWgbiS9SMjySEOBo8lJ4DOwWgwg94bnhKr8f0K3k4A==","shasum":"aad5ca9f104e0d3829006d932b4d5ce4c2edb3e3","tarball":"https://registry.npmjs.org/luckyexcel/-/luckyexcel-1.0.0.tgz","fileCount":10,"unpackedSize":1080781,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfs2RtCRA9TVsSAnZWagAAetgQAJ0z7Mwi/MCbq5MEy9bU\nwiQqHYPmUWTbw9xCLCjjYxujZyt+sUEKG9PN4rJya+vFu/kGzDI5a1w4XtdR\nofMkozZIpVxEjJF8SgZkTCNhe0xQu/k/c7JjKf7hkd7D8tShemIAEgRshgIm\nQx96GDTigOryqGpupnUBsZ0rQqr1thFG4q6hPSNiNYVoRuOlOBzxxBtiv4QG\nurYl6wqeEUS/mpir9PeO656om5H8rzFfqiYKsrqlFnfRqNj7GARMtG5XjbHV\nJ3nhkktomyAn25FBih5WUhVgS+apRWHXChfAAz7yNuZzSUMDvOj+RcUMD/qK\ngWGAOx0ynfxVYUiE+iog2URqsw1ZmEZmORyTV2BZhvWGTWMIsOvfkXN1uKdN\nhL40if61hT/s9otIGx0bRckf3ugpIBoTu9rAMqoMACHaaK+m9qE9XMCFaTkJ\nqWpi+A1DUFhfCNAK8/4BHGMxZ3WXxRFMriwkE7TXNnfq6SKp51lqlu41VdDj\nJscSwPlYV3wlNz6DM3QFE/8/N32ozJ3WTaF43ixjtQro1cz+RxyKXrltreGM\nDdNwx7x01CvpVreVZngCxnNuTJryDSJJNBbtZ33ShwxO4nV8Qs3jVo9kAzo9\nTXR6PGp6GDZNLDmQM9BfV877FtFsw6y/uP2HaHE8Ecp+9ND+3UO1NTz7s+6x\n+WAu\r\n=iG2R\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIANtsmbIMrzDMvMj9yucgIC+IrxcRKE4wFHbpi4U8XDuAiEA+oWxMe3JG3UkRBUQ63PQW6zHojobrIBzn/XGm4pFs38="}]},"_npmUser":{"name":"mengshukeji","email":"msoffice2@126.com"},"directories":{},"maintainers":[{"name":"mengshukeji","email":"msoffice2@126.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/luckyexcel_1.0.0_1605592173209_0.7157915326616393"},"_hasShrinkwrap":false},"1.0.1":{"name":"luckyexcel","version":"1.0.1","description":"An excel import and export library adapted to Luckysheet","main":"dist/luckyexcel.cjs.js","module":"dist/luckyexcel.esm.js","browser":"dist/luckyexcel.umd.js","scripts":{"build":"gulp build","dev":"gulp dev"},"keywords":["Luckysheet","excel"],"author":{"name":"msoffice2@126.com"},"homepage":"https://github.com/mengshukeji/Luckyexcel","repository":{"type":"git","url":"git+https://github.com/mengshukeji/Luckyexcel.git"},"license":"MIT","devDependencies":{"@babel/core":"^7.10.5","@babel/preset-env":"^7.10.4","@babel/preset-typescript":"^7.10.4","@rollup/plugin-typescript":"^6.1.0","@types/node":"^14.14.2","babelify":"^10.0.0","browser-sync":"^2.26.10","browserify":"^16.5.1","delete":"^1.1.0","fancy-log":"^1.3.3","gulp":"^4.0.2","gulp-sourcemaps":"^2.6.5","gulp-typescript":"^6.0.0-alpha.1","gulp-uglify":"^3.0.2","gulp-util":"^3.0.8","rollup":"^2.33.1","rollup-plugin-typescript2":"^0.29.0","tsify":"^4.0.2","tslib":"^2.0.3","typescript":"^3.9.7","vinyl-buffer":"^1.0.1","vinyl-source-stream":"^2.0.0","watchify":"^3.11.1"},"dependencies":{"jszip":"^3.5.0"},"gitHead":"8d47684f8fd9685a4e64f4807f041dd7c58016bd","bugs":{"url":"https://github.com/mengshukeji/Luckyexcel/issues"},"_id":"luckyexcel@1.0.1","_nodeVersion":"12.18.4","_npmVersion":"6.14.6","dist":{"integrity":"sha512-hvbJmCXNp/vST/huA6sieDn32Ib8bd80L9aIu5ZGxniJvZle7VlpHZrl6weLGaEnX99+t7cPAoYGqrqbfZp/AQ==","shasum":"55791f28bb5393e9dff8ba77c11f9c05f9ceb5ae","tarball":"https://registry.npmjs.org/luckyexcel/-/luckyexcel-1.0.1.tgz","fileCount":9,"unpackedSize":1086245,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf8qbWCRA9TVsSAnZWagAAJOcP/0aicEDwS2WvFfiAkrfY\ndYdhoa1kPMch+QTC3N/IVn5srTsDY+AyLAa8DPw7oHRTmOSBgn91Gi09z/lk\nwG6DskOFAejXBRpkS5QKOqACvMni0vMsUaFVSiCZ+zaUwaQg6R5MzNMVPyp4\n10i1dypKYNnNZ2WphZsS4m1kE9oN7gUYH/8HU5zzdHEWYT1TcjDygbt/aw+9\nCV6U6YPUu8xINBXnbdoDGOFwVuLo4emkr4BszupRehFZzOrQENCdqeN/ZfeX\nGBEsDFGIRRdQ6O5Kv+JenXNe05mh/N00rRyvSW8X5tKGjlhM+p3NtNrAJeHk\nnutRl6R/Bzm3ftyC4AwQm2Eq8H+Wv0qiTgLGTWyOq5j6Js9jLtw0ia6kL1w4\n/ylW5btSp2KtxwiYhg90Sg8JEiVF2XyvJs86zbe/jU/c7xyK88MY66cdO5A1\nXBRS06+w/cEb+30RLgiGmBu8dhpfiCwOdGl0Irwbx/DE9y4GL3BBb73JexWm\nCEGEl0vzRoLwlRfJ8aAOvGfNCyGfBuBhWIOxFefBXLOs+NP/j/YqXNLAtLjF\npzv5BPNUsNEBNOPcvR3craRpJFzhrLrs29sV1VsPab5C7mBYa4bTnhpiIfF4\nBFRge3MFGi73DSWItkvI15yTHC4cNXOXnkyJkZWmjp1f7wfPMJ2KF4zO3s3w\n3L6K\r\n=EE3q\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDuF29PwYiOoDbURH5I7h4ptRedw1rQHwn7UW7QobZ9hwIgVwcxly+Qz/BFWfbaf+3G/XTMto6WXNo08Ft3FzHfyOU="}]},"_npmUser":{"name":"mengshukeji","email":"msoffice2@126.com"},"directories":{},"maintainers":[{"name":"mengshukeji","email":"msoffice2@126.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/luckyexcel_1.0.1_1609737942222_0.6201073457173174"},"_hasShrinkwrap":false}},"time":{"created":"2020-11-17T05:49:33.209Z","1.0.0":"2020-11-17T05:49:33.330Z","modified":"2022-05-08T12:52:30.777Z","1.0.1":"2021-01-04T05:25:42.388Z"},"maintainers":[{"name":"mengshukeji","email":"msoffice2@126.com"}],"description":"An excel import and export library adapted to Luckysheet","homepage":"https://github.com/mengshukeji/Luckyexcel","keywords":["Luckysheet","excel"],"repository":{"type":"git","url":"git+https://github.com/mengshukeji/Luckyexcel.git"},"author":{"name":"msoffice2@126.com"},"bugs":{"url":"https://github.com/mengshukeji/Luckyexcel/issues"},"license":"MIT","readme":"English| [简体中文](./README-zh.md)\r\n\r\n## Introduction\r\nLuckyexcel is an excel import and export library adapted to [Luckysheet](https://github.com/mengshukeji/Luckysheet). It only supports .xlsx format files (not .xls).\r\n\r\n## Demo\r\n[Demo](https://mengshukeji.github.io/LuckyexcelDemo/)\r\n\r\n## Features\r\nSupport excel file import to Luckysheet adaptation list\r\n\r\n- Cell style\r\n- Cell border\r\n- Cell format, such as number format, date, percentage, etc.\r\n- Formula\r\n\r\n### Plan\r\nThe goal is to support all features supported by Luckysheet\r\n\r\n- Conditional Formatting\r\n- Pivot table\r\n- Chart\r\n- Sort\r\n- Filter\r\n- Annotation\r\n- Excel export\r\n\r\n## Usage\r\n\r\n### CDN\r\n```html\r\n<script src=\"https://cdn.jsdelivr.net/npm/luckyexcel/dist/luckyexcel.umd.js\"></script>\r\n<script>\r\n    // Make sure to get the xlsx file first, and then use the global method window.LuckyExcel to convert\r\n    LuckyExcel.transformExcelToLucky(file, function(exportJson, luckysheetfile){\r\n        \r\n        // After obtaining the converted table data, use luckysheet to initialize or update the existing luckysheet workbook\r\n        // Note: Luckysheet needs to introduce a dependency package and initialize the table container before it can be used\r\n        luckysheet.create({\r\n            container: 'luckysheet', // luckysheet is the container id\r\n            data:exportJson.sheets,\r\n            title:exportJson.info.name,\r\n            userInfo:exportJson.info.name.creator\r\n        });\r\n    });\r\n</script>\r\n```\r\n> Case [Demo index.html](./src/index.html) shows the detailed usage\r\n\r\n### ES and Node.js\r\n\r\n#### Installation\r\n```shell\r\nnpm install luckyexcel\r\n```\r\n\r\n#### ES import\r\n```js\r\nimport LuckyExcel from 'luckyexcel'\r\n\r\n// After getting the xlsx file\r\nLuckyExcel.transformExcelToLucky(file, function(exportJson, luckysheetfile){\r\n    //Get the worksheet data after conversion\r\n});\r\n```\r\n> Case [luckysheet-vue](https://github.com/mengshukeji/luckysheet-vue)\r\n\r\n#### Node.js import\r\n```js\r\nvar fs = require(\"fs\");\r\nvar LuckyExcel = require('luckyexcel');\r\n\r\n// Read a xlsx file\r\nfs.readFile(\"House cleaning checklist.xlsx\", function(err, data) {\r\n    if (err) throw err;\r\n\r\n    LuckyExcel.transformExcelToLucky(data, function(exportJson, luckysheetfile){\r\n        // Get the worksheet data after conversion\r\n    });\r\n\r\n});\r\n```\r\n> Case [Luckyexcel-node](https://github.com/mengshukeji/Luckyexcel-node)\r\n\r\n## Development\r\n\r\n### Requirements\r\n[Node.js](https://nodejs.org/en/) Version >= 6 \r\n\r\n### Installation\r\n```\r\nnpm install -g gulp-cli\r\nnpm install\r\n```\r\n### Development\r\n```\r\nnpm run dev\r\n```\r\n### Package\r\n```\r\nnpm run build\r\n```\r\n\r\nA third-party plug-in is used in the project: [JSZip](https://github.com/Stuk/jszip), thanks!\r\n\r\n## Communication\r\n\r\n- Any questions or suggestions are welcome to submit [Issues](https://github.com/mengshukeji/Luckyexcel/issues/)\r\n\r\n- [Gitter](https://gitter.im/mengshukeji/Luckysheet)\r\n\r\n[Chinese community](./README-zh.md)\r\n\r\n## Authors and acknowledgment\r\n- [@wbfsa](https://github.com/wbfsa)\r\n- [@wpxp123456](https://github.com/wpxp123456)\r\n- [@Dushusir](https://github.com/Dushusir)\r\n\r\n## License\r\n[MIT](http://opensource.org/licenses/MIT)\r\n\r\nCopyright (c) 2020-present, mengshukeji\r\n","readmeFilename":"README.md"}