{"id":16492712,"url":"https://github.com/jeremyrajan/nice-react-ticker","last_synced_at":"2025-05-06T20:10:35.853Z","repository":{"id":40670371,"uuid":"242272917","full_name":"jeremyrajan/nice-react-ticker","owner":"jeremyrajan","description":"Nicest react ticker in the town!","archived":false,"fork":false,"pushed_at":"2024-05-25T05:04:45.000Z","size":10239,"stargazers_count":29,"open_issues_count":15,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-12T14:06:55.766Z","etag":null,"topics":["financial","lightweight","news-ticker","no-dependencies","react","reactjs","ticker"],"latest_commit_sha":null,"homepage":"https://jeremyrajan.github.io/nice-react-ticker/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jeremyrajan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-02-22T03:27:19.000Z","updated_at":"2024-08-18T06:35:25.000Z","dependencies_parsed_at":"2024-04-27T01:40:01.696Z","dependency_job_id":"560edf28-ee18-4b13-94ad-a2cfbb7dac54","html_url":"https://github.com/jeremyrajan/nice-react-ticker","commit_stats":{"total_commits":35,"total_committers":3,"mean_commits":"11.666666666666666","dds":0.5142857142857142,"last_synced_commit":"96bdd503d948adf90a1466d20ca5a9c284e4dec6"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeremyrajan%2Fnice-react-ticker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeremyrajan%2Fnice-react-ticker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeremyrajan%2Fnice-react-ticker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeremyrajan%2Fnice-react-ticker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jeremyrajan","download_url":"https://codeload.github.com/jeremyrajan/nice-react-ticker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221575307,"owners_count":16846174,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["financial","lightweight","news-ticker","no-dependencies","react","reactjs","ticker"],"created_at":"2024-10-11T14:06:58.335Z","updated_at":"2024-10-26T19:56:02.462Z","avatar_url":"https://github.com/jeremyrajan.png","language":"TypeScript","funding_links":["https://www.buymeacoffee.com/jeremyrajan"],"categories":[],"sub_categories":[],"readme":"# nice-react-ticker\n\n\u003e Nicest react ticker in town\n\n[![NPM](https://img.shields.io/npm/v/nice-react-ticker.svg)](https://www.npmjs.com/package/nice-react-ticker) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)\n[![Build Status](https://travis-ci.com/jeremyrajan/nice-react-ticker.svg?branch=master)](https://travis-ci.com/jeremyrajan/nice-react-ticker)\n\n## Install\n\n```bash\nnpm install --save nice-react-ticker\n```\n\n**Demo**: https://jeremyrajan.github.io/nice-react-ticker/\n\n## Usage\n\nThe library provides with 2 kinds of tickers:\n\n1. Financial Ticker: Heavily inspired from https://www.tradingview.com/\n2. News Ticker: Lightweight news ticker\n\nYou can refer to the demo below for the props and refer to `/example` folder for implementation.\n\n```tsx\nimport React, { Component } from 'react'\nimport Ticker, { FinancialTicker, NewsTicker } from 'nice-react-ticker';\nimport icon from './news-icon.png'; // add images, please make sure they can be set as src\n\n\nexport default class App extends Component {\n  render() {\n    return (\n      \u003cdiv\u003e\n        \u003cTicker\u003e\n          \u003cFinancialTicker id=\"1\" change={true} symbol=\"S\u0026P 500\" lastPrice=\"3372.2\" percentage=\"0.38%\" currentPrice=\"12.9\" /\u003e\n          \u003cFinancialTicker id=\"2\" change={true} symbol=\"AAPL\" lastPrice=\"3372.2\" percentage=\"0.38%\" currentPrice=\"12.9\" /\u003e\n          \u003cFinancialTicker id=\"3\" change={true} symbol=\"GOOG\" lastPrice=\"3372.2\" percentage=\"0.38%\" currentPrice=\"12.9\" /\u003e\n          \u003cFinancialTicker id=\"4\" change={false} symbol=\"S\u0026P 500\" lastPrice=\"3372.2\" percentage=\"0.38%\" currentPrice=\"12.9\" /\u003e\n          \u003cFinancialTicker id=\"5\" change={false} symbol=\"S\u0026P 500\" lastPrice=\"3372.2\" percentage=\"0.38%\" currentPrice=\"12.9\" /\u003e\n          \u003cFinancialTicker id=\"6\" change={false} symbol=\"S\u0026P 500\" lastPrice=\"3372.2\" percentage=\"0.38%\" currentPrice=\"12.9\" /\u003e\n        \u003c/Ticker\u003e\n\n        \u003cdiv className=\"newsticker\"\u003e\n          \u003cTicker isNewsTicker={true}\u003e {// helps with setting up animation}\n            \u003cNewsTicker id=\"1\" icon={icon} title=\"Blue passports to be issued to Brits for the first time in decades next month decades next month decades next month decades next month\" url=\" https://metro.co.uk/2020/02/22/blue-passports-issued-brits-first-time-decades-next-months-12281012/?ito=newsnow-feed\" meta=\"11:10:20\"  /\u003e\n            \u003cNewsTicker id=\"2\" icon={icon} title=\"Blue passports to be issued to Brits for the first time in decades next month\" url=\" https://metro.co.uk/2020/02/22/blue-passports-issued-brits-first-time-decades-next-months-12281012/?ito=newsnow-feed\" meta=\"11:10:20\" /\u003e\n            \u003cNewsTicker id=\"3\" icon={icon} title=\"Blue passports to be issued to Brits for the first time in decades next month\" url=\" https://metro.co.uk/2020/02/22/blue-passports-issued-brits-first-time-decades-next-months-12281012/?ito=newsnow-feed\" meta=\"11:10:20\" /\u003e\n            \u003cNewsTicker id=\"4\" icon={icon} title=\"Blue passports to be issued to Brits for the first time in decades next month\" url=\" https://metro.co.uk/2020/02/22/blue-passports-issued-brits-first-time-decades-next-months-12281012/?ito=newsnow-feed\" meta=\"11:10:20\" /\u003e\n            \u003cNewsTicker id=\"5\" icon={icon} title=\"Blue passports to be issued to Brits for the first time in decades next month\" url=\" https://metro.co.uk/2020/02/22/blue-passports-issued-brits-first-time-decades-next-months-12281012/?ito=newsnow-feed\" meta=\"11:10:20\" /\u003e\n            \u003cNewsTicker id=\"6\" icon={icon} title=\"Blue passports to be issued to Brits for the first time in decades next month\" url=\" https://metro.co.uk/2020/02/22/blue-passports-issued-brits-first-time-decades-next-months-12281012/?ito=newsnow-feed\" meta=\"11:10:20\" /\u003e\n          \u003c/Ticker\u003e\n        \u003c/div\u003e\n      \u003c/div\u003e\n    )\n  }\n}\n\n```\n\n### `Ticker` Options\n\n1. `slideSpeed`: Speed in seconds for the animation\n2. `isNewsTicker`: Toggle between finance and news ticker\n\n## License\n\nMIT © [jeremyrajan](https://github.com/jeremyrajan)\n\n\n\u003ca href=\"https://www.buymeacoffee.com/jeremyrajan\" target=\"_blank\"\u003e\u003cimg src=\"https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png\" alt=\"Buy Me A Coffee\" style=\"height: 60px !important;width: 217px !important;\" \u003e\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeremyrajan%2Fnice-react-ticker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjeremyrajan%2Fnice-react-ticker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeremyrajan%2Fnice-react-ticker/lists"}