tline
TypeScript icon, indicating that this package has built-in type declarations

0.1.12 • Public • Published

tline

Time line for the CSS evolution and history of tooling, libraries, frameworks and so on

Features

  • Zero dependencies 💯
  • dark mode support 🌓
  • reverse timeline is supported 🔃
  • sort timeline by default ✂️
  • support filter using tags and year 📆
  • Build using typescript
  • JavaScript code linting is done using eslint
  • Has .editorconfig which helps developers define and maintain consistent coding styles between different editors and IDEs.

tline-light

tline-dark

Installation

npm i tline
# Or
yarn add tline

Before starting

the event (data) should be similar to:

all properties are required expect url is optional

...
{
  name: 'Bootstrap',
  url: 'https://getbootstrap.com',
  description: 'The most popular HTML, CSS, and JS library in the world.',
  createdAt: new Date(2011, 7, 19),
  tags: ['frameworks'],
},
...

Usage 🚀

import Tline from 'Tline';

const events = [] // your events as previously structured

<Tline timeline={events} />

Available props

property type default description
tag string all filter timeline by events tag
year number 0 filter timeline by events year
reversed boolean false determine if timeline is reversed or not default is sorted by date
darkmode boolean false activate darkmode

Playground

const [setting, setSetting] = useState({
  tag: 'all',
  year: 0,
  reversed: false,
  darkmode: false,
  timeline: data,
});

return (
  <div className={`app ${setting.darkmode ? 'darkmode' : ''}`}>
    <Tline {...setting} />
  </div>
);

Related Work 🌠

  • tube-cli - A package for downloading youtube videos & playlists
  • tube-info - A package for getting youtube videos & playlists info
  • js-pmq - A simple NPM package to get popular movie quotes.

Data sources

Contribution 🤝

  1. Fork it!
  2. Create your feature branch: git checkout -b feature-name
  3. Commit your changes: git commit -am 'Some commit message'
  4. Push to the branch: git push origin feature-name
  5. Submit a pull request 😉😉

License 📜

MIT © Mohammed Taysser

Package Sidebar

Install

npm i tline

Weekly Downloads

1

Version

0.1.12

License

MIT

Unpacked Size

110 kB

Total Files

17

Last publish

Collaborators

  • mohammed-taysser