New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

mxik

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mxik

Typed client for tasnif.soliq.uz: search MXIK (IKPU) codes by keyword, barcode, brand or certificate

Source
npmnpm
Version
1.2.0
Version published
Weekly downloads
78
90.24%
Maintainers
1
Weekly downloads
 
Created
Source

mxik

Typed JS/TS client for tasnif.soliq.uz: search MXIK (IKPU) codes by keyword, barcode, brand or certificate.

  • Zero dependencies, ~2 kB gzipped
  • ESM + CommonJS, works in Node 20+, Bun, Deno, browsers and edge runtimes
  • Unwrapped results, pagination, language, timeouts and AbortSignal support

📖 Documentation

Install

npm i mxik # pnpm add mxik | bun add mxik

Usage

import { createMxik } from 'mxik'

const mxik = createMxik({ lang: 'ru' })

// Full-text search
const { items, total, hasNext } = await mxik.search('кофе', { page: 1, size: 50 })

// Full card of a code, `null` if it doesn't exist
const details = await mxik.get('00406001001232001')

// Search by fields
await mxik.filter({ brand: 'Samsung' })
await mxik.filter({ barcode: '4600000000000' })

// By DV certificate number
await mxik.dvCert('UZ.123456')

// Iterate over every result, pages are fetched lazily
for await (const item of mxik.searchAll('кофе'))
  console.log(item.mxikCode, item.name)

Errors

API errors throw MxikError with status and reason. Network errors, timeouts and aborts are passed through as is.

import { MxikError } from 'mxik'

try {
  await mxik.search('кофе', { signal: AbortSignal.timeout(3000) })
}
catch (error) {
  if (error instanceof MxikError)
    console.log(error.status, error.reason)
}

Migrating from 1.1

MxikClient, createMxikClient and fetchBy* still work but are deprecated. See the migration guide.

License

MIT

Keywords

mxik

FAQs

Package last updated on 07 Oct 2026

Related posts