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

psd-cli

v0.2.1

Published

Convert to PNG and extract text from Photoshop files using the CLI

Downloads

26

Readme

PSD from CLI

Convert to PNG and extract text from Photoshop files using the CLI

Requirements

This tool has no native dependencies (no need for ImageMagick or even Photoshop) thanks to the great work done by the folks of PSD.js. Unfortunately, not all image modes and depths are supported yet.

You just need to have a recent version of NodeJS installed on your system.

Install

npm install -g psd-cli

Usage

Convert a single file

psd path/to/my_psd_file.psd -c
# Creates path/to/my_psd_file.png

Extract text from a single file

psd path/to/my_psd_file.psd -t
# Creates path/to/my_psd_file.txt

Preview a single file

psd path/to/my_psd_file.psd -o
# Still creates path/to/my_psd_file.png

Multiple file handling

psd *.psd -o
# Creates PNG files and opens them in your default image preview software

Help

Full usage available by typing psd --help

Usage: psd [options] <file...>

Options:

  -h, --help     output usage information
  -V, --version  output the version number
  -c, --convert  Convert to PNG file named <FILENAME>.png
  -t, --text     Extract text content to <FILENAME>.txt
  -o, --open     Preview file after conversion (triggers -c option)

Upcoming features

The text extraction feature is still experimental. If you experience any issues with it, please let me know by filing an issue on GitHub and attach your PSD file.

There are many cool features available around PSD files. Most of them are covered by other NPM tools. Again, throw in an issue on GitHub to discuss about what would be useful to you.