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

@datoteca/cli

v0.2.1

Published

Command-line interface for generating realistic, localized Chilean test data (RUT, people, addresses, phones, money, companies) without writing code

Readme

@datoteca/cli

Command-line interface for Datoteca — generate realistic, localized Chilean test data (RUT, people, addresses, phones, money, companies) from the terminal, no TypeScript/JavaScript required. Useful for populating fixtures, generating CSV/JSON for QA, or feeding non-JS stacks (Go, Python, etc.).

Every command wraps @datoteca/cl — same seeded determinism guarantee: same seed and flags, always the same output.

Installation

Run without installing:

npx @datoteca/cli person --seed 42 --count 3

Or install it globally:

npm install -g @datoteca/cli
datoteca person --seed 42 --count 3

Usage

datoteca <command> [options]

Common options (every command)

| Flag | Description | Default | | --- | --- | --- | | -s, --seed <seed> | Seed (integer or text) | 1 | | -c, --count <count> | Number of records to generate | 1 | | -f, --format <format> | Output format: json, csv, ndjson | json |

Output always goes to stdout, so it composes with shell redirection:

npx @datoteca/cli person --seed 42 --count 100 --format csv > fixtures.csv
npx @datoteca/cli money --seed 42 --format ndjson | jq '.amount'

Commands

rut — Chilean RUT (same algorithm for people and companies)

datoteca rut --seed 42 --count 5
datoteca rut --rut-format dots --no-dv

| Flag | Description | Default | | --- | --- | --- | | --rut-format <format> | raw, dash, dots | dash | | --no-dv | Omit the check digit | (included) |

Output row: { rut }.

person — natural persons. Output row: { firstName, lastName, fullName }. No generator-specific flags; each field is drawn independently from the shared RNG stream, mirroring how @datoteca/cl itself works.

datoteca person --seed 42 --count 10 --format ndjson

address — Chilean addresses (real comunas). Output row: { commune, street, fullAddress }.

datoteca address --seed 42 --count 10 --format csv

phone — Chilean phone numbers. Output row: { mobile, landline }.

datoteca phone --seed 42 --count 10

money — CLP or UF amounts.

datoteca money --seed 42 --currency UF --min 10 --max 500 --count 20

| Flag | Description | Default | | --- | --- | --- | | --currency <currency> | CLP, UF | CLP | | --min <min> | Minimum amount | generator default | | --max <max> | Maximum amount | generator default |

Output row: { currency, amount, formatted }amount is the raw number, formatted is the es-CL formatted string (e.g. $45.000 or UF 1.234,56).

company — Chilean companies. Output row: { businessName, industry }.

datoteca company --seed 42 --count 10

Errors

Invalid arguments (negative --count, unknown --format, --min greater than --max, etc.) print a clear message to stderr and exit with a non-zero code — safe to use in scripts with set -e.

Determinism

datoteca person --seed 42 --count 5   # run twice, byte-for-byte identical output

Same as the core library: the guarantee is seed and call order together. See docs/determinism.md in the main repo for details.

License

MIT — see LICENSE.