npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@crrajaguru/thirukkural

v0.1.4

Published

A thirukkural Package that give set of functions to read thirukkural

Readme

Thirukkural Lookup

Thirukkural Lookup is a TypeScript library designed to facilitate easy access and retrieval of verses from the Thirukkural, a classic Tamil text renowned for its universal teachings on ethics and morality.

About Thirukkural

The Thirukkural, authored by the ancient Tamil poet Thiruvalluvar, comprises 1,330 couplets (kurals) that provide timeless insights into various aspects of life. These couplets are organized into 133 chapters, each containing 10 kurals, and are further grouped into three primary sections:

  1. Aram (Virtue): Focuses on moral values and ethical living.
  2. Porul (Wealth): Deals with statecraft and socio-economic matters.
  3. Inbam (Love): Explores love and interpersonal relationships.

This structure ensures comprehensive coverage of both individual conduct and societal norms.

Installation

To incorporate Thirukkural Lookup into your project, install it via npm:

npm install @crrajaguru/thirukkural

Usage

First, import the necessary functions from the library:

import {
    getSections,
    getChapterGroups,
    getChapters,
    getAllChapterGroups,
    getAllChapters,
    getKuralByChapter,
    getSongByNumber
} from '@crrajaguru/thirukkural';

Functions

  1. getSections(): Retrieves all section names.

    const sections = getSections();
    console.log(sections);
    // Output: ['Aram', 'Porul', 'Inbam']
  2. getChapterGroups(sectionNumber: number): Fetches chapter groups within a specified section.

    const chapterGroups = getChapterGroups(1); // For 'Aram' section
    console.log(chapterGroups);
  3. getChapters(chapterGroupNumber: number): Retrieves chapters within a specified chapter group.

    const chapters = getChapters(1); // Assuming chapter group 1 exists
    console.log(chapters);
  4. getAllChapterGroups(): Returns all chapter groups across sections.

    const allChapterGroups = getAllChapterGroups();
    console.log(allChapterGroups);
  5. getAllChapters(): Fetches all chapters across all sections and groups.

    const allChapters = getAllChapters();
    console.log(allChapters);
  6. getKuralByChapter(chapterNumber: number): Retrieves all kurals within a specified chapter.

    const kurals = getKuralByChapter(1); // For chapter 1
    console.log(kurals);
  7. getSongByNumber(songNumber: number): Fetches a specific kural by its number.

    const kural = getSongByNumber(1); // For kural number 1
    console.log(kural);
  8. kuralSearch(query: string): The search query (one or more words)..

    const kurals = kuralSearch('உலகு'); // For kural number 1
    console.log(kurals);

Data Source

The kural data utilized in this library is sourced from the thirukkural repository. We extend our gratitude to the contributors for making this valuable resource available.

Source Code

The source code for this npm package is available at GitHub.

License

This project is licensed under the MIT License.