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 🙏

© 2026 – Pkg Stats / Ryan Hefner

turkce-js

v2.0.0

Published

TDK (Türk Dil Kurumu) sözlüğünden kelime anlamları, otomatik tamamlama, kelime doğrulama, formatlı çıktı ve toplu sorgulama sağlayan Node.js paketi.

Readme

turkce-js 🇹🇷

Türk Dil Kurumu (TDK) sözlük API wrapper for Node.js — word definitions, suggestions, validation, and formatted output.

🚀 What's New in v2.0.0

  • getSuggestions() — TDK autocomplete suggestions for partial words
  • getFormattedDefinition() — Beautiful ASCII-formatted word details
  • isValidWord() — Quick boolean word validation
  • validateWords() — Batch validate arrays of words
  • Enhanced definitions — Pronunciation, detailed meanings with types/examples, related words
  • Better CLI — New commands: detay, oneri, kontrol

📦 Installation

npm install turkce-js

📋 Usage

Get Word Definition

const { getWordDefinition } = require("turkce-js");

const result = await getWordDefinition("merhaba");
console.log(result.title);       // "merhaba"
console.log(result.pronunciation); // Pronunciation info
console.log(result.meanings);     // Detailed meanings array
console.log(result.relatedWords); // Related words array

Get Suggestions (Autocomplete)

const { getSuggestions } = require("turkce-js");

const suggestions = await getSuggestions("mer");
// ["mera", "merak", "meraklı", "meral", "meram", "merhaba", ...]

Formatted Definition

const { getFormattedDefinition } = require("turkce-js");

const text = await getFormattedDefinition("bilgisayar");
console.log(text);
// ╔════════════════════════════╗
// ║  BILGISAYAR              ║
// ╠════════════════════════════╣
// ║  1. [isim] ...           ║
// ╚════════════════════════════╝

Validate Words

const { isValidWord, validateWords } = require("turkce-js");

const valid = await isValidWord("kitap"); // true
const invalid = await isValidWord("xyzabc"); // false

const results = await validateWords(["kitap", "kalem", "xyzabc"]);
// { valid: ["kitap", "kalem"], invalid: ["xyzabc"] }

Batch Lookup

const { batchLookup } = require("turkce-js");

const words = await batchLookup(["araba", "ev", "kitap"]);
// Returns array of definition objects

// With formatted output:
const formatted = await batchLookup(["araba", "ev"], { formatted: true });

📟 CLI Usage

# Basic definition
npx turkce-js kelime merhaba

# Formatted definition
npx turkce-js detay bilgisayar

# Get suggestions
npx turkce-js oneri mer

# Validate a word
npx turkce-js kontrol kitap

# Lookup from file
npx turkce-js dosya kelimeler.txt

# Formatted file output
npx turkce-js dosya kelimeler.txt --formatli

📡 API

| Function | Description | |----------|-------------| | getWordDefinition(word) | Get detailed word definition from TDK | | getSuggestions(partial) | Get autocomplete suggestions | | getFormattedDefinition(word) | Get ASCII-formatted definition | | isValidWord(word) | Check if word exists (boolean) | | validateWords(words[]) | Batch validate words | | batchLookup(words[], options?) | Lookup multiple words |

📄 License

MIT © Utku Berkay Koç