{"_id":"@0xbutterfield/lightweight-charts","name":"@0xbutterfield/lightweight-charts","dist-tags":{"latest":"4.1.0-alpha.1"},"versions":{"4.1.0-alpha.1":{"version":"4.1.0-alpha.1","name":"@0xbutterfield/lightweight-charts","author":{"name":"TradingView, Inc."},"license":"Apache-2.0","description":"Performant financial charts built with HTML5 canvas","bugs":{"url":"https://github.com/tradingview/lightweight-charts/issues"},"repository":{"type":"git","url":"git+https://github.com/tradingview/lightweight-charts.git"},"module":"dist/lightweight-charts.production.mjs","main":"index.cjs","typings":"dist/typings.d.ts","exports":{"./package.json":"./package.json",".":{"development":{"types":"./dist/typings.d.ts","import":"./dist/lightweight-charts.development.mjs","require":"./dist/lightweight-charts.development.cjs"},"production":{"types":"./dist/typings.d.ts","import":"./dist/lightweight-charts.production.mjs","require":"./dist/lightweight-charts.production.cjs"},"default":{"types":"./dist/typings.d.ts","import":"./dist/lightweight-charts.production.mjs","require":"./index.cjs"}}},"keywords":["financial-charting-library","charting-library","html5-charts","canvas","typescript","charting","charts"],"dependencies":{"fancy-canvas":"2.1.0"},"devDependencies":{"@rollup/plugin-node-resolve":"~15.0.1","@rollup/plugin-replace":"~5.0.2","@size-limit/file":"~8.1.2","@types/chai":"~4.3.4","@types/glob":"~8.0.1","@types/mocha":"~10.0.1","@types/node":"~16.18.9","@types/pixelmatch":"~5.2.4","@types/pngjs":"~6.0.1","@typescript-eslint/eslint-plugin":"~5.50.0","@typescript-eslint/eslint-plugin-tslint":"~5.50.0","@typescript-eslint/parser":"~5.50.0","bytes":"~3.1.2","chai":"~4.3.7","chai-exclude":"~2.1.0","cross-env":"~7.0.3","dts-bundle-generator":"~7.2.0","eslint":"~7.32.0","eslint-plugin-deprecation":"~1.3.3","eslint-plugin-import":"~2.27.5","eslint-plugin-jsdoc":"~39.8.0","eslint-plugin-markdown":"~3.0.0","eslint-plugin-mdx":"~1.17.0","eslint-plugin-prefer-arrow":"~1.2.3","eslint-plugin-react":"~7.32.2","eslint-plugin-tsdoc":"~0.2.17","eslint-plugin-unicorn":"~40.1.0","express":"~4.18.2","glob":"~8.1.0","markdown-it":"~13.0.1","markdown-it-anchor":"~8.6.6","markdownlint-cli":"~0.33.0","memlab":"~1.1.37","mocha":"~10.2.0","npm-run-all":"~4.1.5","pixelmatch":"~5.3.0","pngjs":"~6.0.0","puppeteer":"~19.6.3","rimraf":"~4.1.2","rollup":"~3.14.0","rollup-plugin-terser":"~7.0.2","size-limit":"~8.1.2","ts-node":"~10.9.1","ts-transformer-properties-rename":"~0.14.0","ts-transformer-strip-const-enums":"~1.0.1","tslib":"2.5.0","tslint":"6.1.3","tslint-eslint-rules":"~5.4.0","tslint-microsoft-contrib":"~6.2.0","ttypescript":"~1.5.15","typescript":"4.9.5","yargs":"~17.6.2"},"scripts":{"postinstall":"npm run install-hooks","install-hooks":"node scripts/githooks/install.js","clean":"rimraf lib/ dist/","bundle-dts":"tsc --noEmit --allowJs dts-config.js && dts-bundle-generator --config dts-config.js","tsc":"ttsc -p tsconfig.prod.json","tsc-watch":"npm run tsc -- --watch --preserveWatchOutput","tsc-verify":"node website/scripts/generate-versions-dts.js && tsc -b tsconfig.composite.json","lint":"npm-run-all -p lint:**","lint:eslint":"eslint --format=unix ./","lint:md":"markdownlint -i \"**/node_modules/**\" -i \"**/website/docs/api/**\" -i \"**/website/versioned_docs/**/api/**\" \"**/*.md\"","check-dts-docs":"eslint --format=unix ./dist/typings.d.ts","check-markdown-links":"node scripts/check-markdown-links.js","rollup":"rollup -c rollup.config.js","rollup-watch":"npm run rollup -- --watch","build":"npm-run-all tsc rollup bundle-dts","build:watch":"npm-run-all tsc -p tsc-watch rollup-watch","build:prod":"cross-env NODE_ENV=production npm run build","build:release":"cross-env BUILD_TAG=release npm run build:prod","prepare-release":"npm-run-all clean build:release && npm run prepare-package-json-for-release","prepare-package-json-for-release":"node ./scripts/clean-package-json.js","size-limit":"size-limit","verify":"npm-run-all clean -p build:prod check-markdown-links -p lint check-dts-docs tsc-verify test size-limit","test":"mocha tests/unittests/**/*.spec.ts"},"gitHead":"1760f5a4a82eaded3a06340d4a3ec139c5ab1b38","homepage":"https://github.com/tradingview/lightweight-charts#readme","_id":"@0xbutterfield/lightweight-charts@4.1.0-alpha.1","_nodeVersion":"16.15.1","_npmVersion":"8.11.0","dist":{"integrity":"sha512-HYNCS8DQA38GKPNqLnSlNjAOmvJFMXtZRJSskf1NlXtfoZwJ0BjvAn+hbtFZkkKHicKbmeobHBaCn/2ZJawjVg==","shasum":"237b823f07fcdeb87a735d52330420449e16c5cf","tarball":"https://registry.npmjs.org/@0xbutterfield/lightweight-charts/-/lightweight-charts-4.1.0-alpha.1.tgz","fileCount":13,"unpackedSize":2933529,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDkjJ7zhSfy7pf0cP36Lo7mZOfv6pFZXssw/Lq4R3u3uwIgIe8IkypPC1DM9GrWTXM5l7Rg8jBXbxYs10xVrMCSDe4="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkIyNuACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrvGBAAkNRkUPASuVglnOW7iHJU/SJ74rxRKtydwS/jUCqpkUmRax9/\r\nLqxE/4wwJV1lahtJKc8z/euOmRT9g99TVCPX91ZaLRlBjIOlelmK2vpNSq62\r\n4j7C3HsYb/HAUT4hAkt7T9JvFnw/1+s0JEoZ6jP7bSniTjiwsg3kvHN2rLIH\r\nn6s2JlYGGwI1U5GMD9JDn4ebOFA5LvGPgwtq1n6WnzFFrdRvqWSsdLeZ89KS\r\nfT4WLFYp+AuCzo8NT7MlM0P0J3yfyx8DaXW7fSzLMVVBiKbB+sMWl/uWvfvZ\r\nuU/15HQx9ygibl6tUcSASZXU57iybLFVu3wS3y6Hs/R6aAHRvgjM/riKNpQk\r\nCCooFvWaCvltXGulj+6AwdgWhLIchlz1j2FcjHJjYXviJUQgO1EGhuobYdfw\r\nxK3yU7VpKkmzXVjmcc7jzsj3ICWN3vBsL4PdHah6ZUF0KhQfImtBa18+hs3i\r\nlxpc1SEAMHCMjeIFeXrqnYRqItoxPgvyErAEG6OpWD2E36a5dYCJWYogr2WN\r\nsM4xKeyhXL51Z1G8QChGJGU6j6k3S7Uh+7euthU2vVVQWkzIV/5+uRcU8aQf\r\nIrgpArVpWyO5RDw2vhdtajTmWBKTahLcOUaIwYflzdeaV1qn7jsAegSSShuI\r\npfbcsXRpgvAS57sHXKaLQvgt3O6+usB1/jA=\r\n=DnUe\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"0xbutterfield","email":"b.butterfield@aura.finance"},"directories":{},"maintainers":[{"name":"0xbutterfield","email":"b.butterfield@aura.finance"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lightweight-charts_4.1.0-alpha.1_1680024429955_0.3221274903465461"},"_hasShrinkwrap":false}},"time":{"created":"2023-03-28T17:27:09.844Z","4.1.0-alpha.1":"2023-03-28T17:27:10.223Z","modified":"2023-03-28T17:27:10.469Z"},"maintainers":[{"name":"0xbutterfield","email":"b.butterfield@aura.finance"}],"description":"Performant financial charts built with HTML5 canvas","homepage":"https://github.com/tradingview/lightweight-charts#readme","keywords":["financial-charting-library","charting-library","html5-charts","canvas","typescript","charting","charts"],"repository":{"type":"git","url":"git+https://github.com/tradingview/lightweight-charts.git"},"author":{"name":"TradingView, Inc."},"bugs":{"url":"https://github.com/tradingview/lightweight-charts/issues"},"license":"Apache-2.0","readme":"<!-- markdownlint-disable no-inline-html first-line-h1 -->\n\n<div align=\"center\">\n  <a href=\"https://www.tradingview.com/lightweight-charts/\" target=\"_blank\">\n    <img width=\"200\" src=\"https://github.com/tradingview/lightweight-charts/raw/master/.github/logo.svg?sanitize=true\">\n  </a>\n\n  <h1>Lightweight Charts™</h1>\n\n  [![CircleCI][ci-img]][ci-link]\n  [![npm version][npm-version-img]][npm-link]\n  [![npm bundle size][bundle-size-img]][bundle-size-link]\n  [![Dependencies count][deps-count-img]][bundle-size-link]\n  [![Downloads][npm-downloads-img]][npm-link]\n</div>\n\n<!-- markdownlint-enable no-inline-html -->\n\n[Demos][demo-url] | [Documentation](https://tradingview.github.io/lightweight-charts/) | [Discord community](https://discord.gg/UC7cGkvn4U) | [Reddit](https://www.reddit.com/r/TradingView/)\n\nTradingView Lightweight Charts™ are one of the smallest and fastest financial HTML5 charts.\n\nThe Lightweight Charts™ library is the best choice for you if you want to display financial data as an interactive chart on your web page without affecting your web page loading speed and performance.\n\nIt is the best choice for you if you want to replace static image charts with interactive ones.\nThe size of the library is close to static images but if you have dozens of image charts on a web page then using this library can make the size of your web page smaller.\n\n## Installing\n\n### es6 via npm\n\n```bash\nnpm install lightweight-charts\n```\n\n```js\nimport { createChart } from 'lightweight-charts';\n\nconst chart = createChart(document.body, { width: 400, height: 300 });\nconst lineSeries = chart.addLineSeries();\nlineSeries.setData([\n    { time: '2019-04-11', value: 80.01 },\n    { time: '2019-04-12', value: 96.63 },\n    { time: '2019-04-13', value: 76.64 },\n    { time: '2019-04-14', value: 81.89 },\n    { time: '2019-04-15', value: 74.43 },\n    { time: '2019-04-16', value: 80.01 },\n    { time: '2019-04-17', value: 96.63 },\n    { time: '2019-04-18', value: 76.64 },\n    { time: '2019-04-19', value: 81.89 },\n    { time: '2019-04-20', value: 74.43 },\n]);\n```\n\n### CDN\n\nYou can use [unpkg](https://unpkg.com/):\n\n<https://unpkg.com/lightweight-charts/dist/lightweight-charts.standalone.production.js>\n\nThe standalone version creates `window.LightweightCharts` object with all exports from `esm` version:\n\n```js\nconst chart = LightweightCharts.createChart(document.body, { width: 400, height: 300 });\nconst lineSeries = chart.addLineSeries();\nlineSeries.setData([\n    { time: '2019-04-11', value: 80.01 },\n    { time: '2019-04-12', value: 96.63 },\n    { time: '2019-04-13', value: 76.64 },\n    { time: '2019-04-14', value: 81.89 },\n    { time: '2019-04-15', value: 74.43 },\n    { time: '2019-04-16', value: 80.01 },\n    { time: '2019-04-17', value: 96.63 },\n    { time: '2019-04-18', value: 76.64 },\n    { time: '2019-04-19', value: 81.89 },\n    { time: '2019-04-20', value: 74.43 },\n]);\n```\n\n### Build Variants\n\n|Dependencies included|Mode|ES module|CommonJS ⚠️|IIFE (`window.LightweightCharts`)|\n|-|-|-|-|-|\n|No|PROD|`lightweight-charts.production.mjs`|`lightweight-charts.production.cjs`|N/A|\n|No|DEV|`lightweight-charts.development.mjs`|`lightweight-charts.development.cjs`|N/A|\n|Yes (standalone)|PROD|`lightweight-charts.standalone.production.mjs`|-|`lightweight-charts.standalone.production.js`|\n|Yes (standalone)|DEV|`lightweight-charts.standalone.development.mjs`|-|`lightweight-charts.standalone.development.js`|\n\n⚠️ **Deprecation note:** CommonJS support will be removed from the library at the start of 2024.\n\n## Development\n\nSee [BUILDING.md](./BUILDING.md) for instructions on how to build `lightweight-charts` from source.\n\n## License\n\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use this software except in compliance with the License.\nYou may obtain a copy of the License at LICENSE file.\nUnless required by applicable law or agreed to in writing, software distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.\n\nThis software incorporates several parts of tslib (<https://github.com/Microsoft/tslib>, (c) Microsoft Corporation) that are covered by BSD Zero Clause License.\n\nThis license requires specifying TradingView as the product creator.\nYou shall add the \"attribution notice\" from the NOTICE file and a link to <https://www.tradingview.com/> to the page of your website or mobile application that is available to your users.\nAs thanks for creating this product, we'd be grateful if you add it in a prominent place.\n\n[demo-url]: https://www.tradingview.com/lightweight-charts/\n\n[ci-img]: https://img.shields.io/circleci/build/github/tradingview/lightweight-charts.svg\n[ci-link]: https://circleci.com/gh/tradingview/lightweight-charts\n\n[npm-version-img]: https://badge.fury.io/js/lightweight-charts.svg\n[npm-downloads-img]: https://img.shields.io/npm/dm/lightweight-charts.svg\n[npm-link]: https://www.npmjs.com/package/lightweight-charts\n\n[bundle-size-img]: https://badgen.net/bundlephobia/minzip/lightweight-charts\n[deps-count-img]: https://img.shields.io/badge/dynamic/json.svg?label=dependecies&color=brightgreen&query=$.dependencyCount&uri=https%3A%2F%2Fbundlephobia.com%2Fapi%2Fsize%3Fpackage%3Dlightweight-charts\n[bundle-size-link]: https://bundlephobia.com/result?p=lightweight-charts\n","readmeFilename":"README.md"}