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 🙏

© 2025 – Pkg Stats / Ryan Hefner

autosnippet

v1.1.12

Published

A iOS module management tool.

Readme

AutoSnippet

A iOS module management tool. Use the command line to create an Xcode Snippet, generate a JSON file, and share it with other developers in the code repository.

Installation

$ npm install -g autosnippet

Options

Please use all the following commands in the current Xcode project file directory.

init

Execute this command in the root directory of the Xcode project to create a workspace:

$ asd init

When creating a workspace, the Snippet configuration information of the sub-workspace will be collected to the current workspace.

create

Command to create an Xcode Snippet, in the file directory marked with // ACode code:

$ asd c

Code like this:

// ACode
UIView *view = [[UIView alloc] init];
// ACode

install

Add the shared Snippet to the Xcode environment:

$ asd i

Use code Snippet like this:

// view is code key entered when creating
@view 

share

Share local Snippet:

$ asd s

watch

In modular projects, recognize that Snippet automatically injects dependency header files:

$ asd w

Append header file

After the watch is turned on, if you want to append the header file, perform the following operations:

  1. Down arrow to select the headerVersion of Snippet
  2. Press the Enter
  3. Command + S save file

Within 1 second, the header file is automatically added to the file header.

Browser view

After the watch is turned on, if you want to view more information about the module in the browser, perform the following operations:

  1. Enter @ and module key
  2. Enter # and ALink
  3. Command + S save file

Automatically jump to the browser to open the link configured during creation, and open the README.md file without a link.

Use ALink like this:

@view#ALink

Other

Shortcuts for placeholders

You can add a placeholder in your snippets too using following tag:

<#placeholder#>

E.g: the above placeholder can be written as:

<#view: UIView#>

Xcode detects <# and #> tokens and will make the text between them a placeholder. We can switch between multiple placeholders by pressing Tab key.

When there are multiple same placeholders, use ⌥⌘E to select multiple placeholders continuously:

  1. Select a placeholder
  2. ⌥⌘E selects the next placeholder, ⌥⇧⌘E selects the previous placeholder
  3. Enter the modified content, all selected placeholders will be modified

Thanks.