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 🙏

© 2024 – Pkg Stats / Ryan Hefner

kaki

v2.0.0

Published

Search tool designed for developers

Downloads

36

Readme

Build Status Coverage Status

logo

Why??

  • Designed to save your time
  • Common tasks in fewer keystrokes
  • Only search for what really matter
  • Full optimized for developers
  • Portable and easy to install (any machine with nodejs installed)
  • Open source

kaki grep example

Instalation

npm install -g kaki

Usage

kaki [OPTION]... PATTERN [path]
Examples:

Search for text in files -x or --text

kaki -x myFunction

Search for regex pattern in files

kaki -x "/filter.*/"

Search for files that contains text in name -w

kaki -w "index"

Search for regex pattern in files name

kaki -w "/[A-Z]+.js/"

Search recursively -R for files of type -t .doc,.docx,.xls

kaki -R -t .doc,.docx,.xls

Search for shell files [.sh .bash .csh .tcsh .ksh .zsh .fish] in current directory

kaki --shell

Invert match -v: select non-matching files

kaki -v [OPTIONS]... PATTERN [path]

Ignore case distinctions -i

kaki -i [OPTIONS]... PATTERN [path]

Ignore directories --ignore-dir. Similar approach for --ignore-file and --ignore-ext

kaki -R --ignore-dir dist,target

General options

 -h, --help             output usage information
 -V, --version          output the version number
 -i, --ignorecase       Ignore case distinctions
 -x, --text             find text or /regex/ in files
 -w, --word             force PATTERN to match only whole words or /regex/ (file name)
 -t, --extensions       filter by custom types ex: ".app,.jar,.exe"
 -R, --rec              search recursively
 -v, --invert-match     Invert match: select non-matching lines
 --ignore-dir           Ignore directories from search
 --ignore-file          Ignore files from search
 --ignore-ext           Ignore extensions from search
 --sort                 Sort the found files

Supported languages and related extensions

--actionscript .as .mxml
--ada          .ada .adb .ads
--asm          .asm .s
--asp          .asp
--aspx         .master .ascx .asmx .aspx .svc
--batch        .bat .cmd
--cc           .c .h .xs
--cfmx         .cfc .cfm .cfml
--clojure      .clj
--cmake        CMakeLists.txt; .cmake
--coffeescript .coffee
--cpp          .cpp .cc .cxx .m .hpp .hh .h .hxx
--csharp       .cs
--css          .css
--dart         .dart
--delphi       .pas .int .dfm .nfm .dof .dpk .dproj .groupproj .bdsgroup .bdsproj
--elisp        .el
--elixir       .ex .exs
--erlang       .erl .hrl
--fortran      .f .f77 .f90 .f95 .f03 .for .ftn .fpp
--go           .go
--groovy       .groovy .gtmpl .gpp .grunit .gradle
--haskell      .hs .lhs
--hh           .h
--html         .htm .html
--java         .java .properties
--js           .js
--json         .json
--jsp          .jsp .jspx .jhtm .jhtml
--less         .less
--lisp         .lisp .lsp
--lua          .lua
--make         .mk; .mak; makefile; Makefile; GNUmakefile
--matlab       .m
--md           .mkd; .md
--objc         .m .h
--objcpp       .mm .h
--ocaml        .ml .mli
--parrot       .pir .pasm .pmc .ops .pod .pg .tg
--perl         .pl .pm .pod .t .psgi
--perltest     .t
--php          .php .phpt .php3 .php4 .php5 .phtml
--plone        .pt .cpt .metadata .cpy .py
--pmc          .pmc
--python       .py
--rake         Rakefile
--rr           .R
--ruby         .rb .rhtml .rjs .rxml .erb .rake .spec
--rust         .rs
--sass         .sass .scss
--scala        .scala
--scheme       .scm .ss
--shell        .sh .bash .csh .tcsh .ksh .zsh .fish
--smalltalk    .st
--sql          .sql .ctl
--tcl          .tcl .itcl .itk
--tex          .tex .cls .sty
--textile      .textile
--tt           .tt .tt2 .ttml
--vb           .bas .cls .frm .ctl .vb .resx
--verilog      .v .vh .sv
--vhdl         .vhd .vhdl
--vim          .vim
--xml          .xml .dtd .xsl .xslt .ent
--yaml         .yaml .yml

Default ignored directories

[".bzr", ".cdv", ".dep", ".dot", ".nib", ".plst", ".git", ".hg", ".pc", ".svn",
 "_MTN", "CSV", "RCS", "SCCS", "_darcs", "_sgbak", "utom4te.cache", "blib", "_build",
 "cover_db", "node_modules", "CMakeFiles", ".metadata", ".cabal-sandbox", ".idea"]

Notes

  • Kaki is strongly inspired in ack! project.
  • Made with love :heart:

License

MIT