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

lsdf

v1.0.0

Published

Command line tool to list files in a directory

Downloads

1

Readme

lsdf

lsdf is command line tool to list files in a directory.

That's what ls does, genius.

Yes but ls forces me to know the filename and extension. I don't care what the extension is, I just want to know if this file I'm searching for exists or not.

You need a whole tool just for that?

So I create lots of files to test things out and checking to see if the file I want to create exists already is something I do a lot. I do it enough times for it to be annoying that is why lsdf exists.

You mean no one else has come up with this problem?

I did a search and didn't really find what I wanted. Most tools try to replicate the functionality of ls. I don't need that, I just need a quick check, file exists? No? Great. Thanks.

Fine, fine. What's with the name?

Initially I wanted lsd :) but it was already taken :( lsf didn't look cool enough. I also thought to you_ma. Mandarin you means have, ma means ? but lsdf was faster to type and more importantly available.

Usage

To install globally, Run

$ npm install -g lsdf

To list files in the current directory with name: readme, type

$ lsdf readme

If there are multiple files with the same name it lists them all with their extensions. If no files exists, it does nothing.

You can also list files in any directory by passing the -d flag followed by the path:

$ lsdf package -d ..

This will search for package in the directory one level above the current directory where the command is run.

License

The MIT License (MIT)