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

alloy-smelter

v0.0.16

Published

Helper commands for Appcelerator Titanium MVC Framework Alloy project app.

Readme

alloy-smelter

Helper commands for Appcelerator Titanium MVC Framework Alloy project app.

Why alloy-smelter?

I frequently the controller on move, rename and remove.

Installation

$ [sudo] npm install -g alloy-smelter

Installing edge version.

[sudo] npm install -g git://github.com/k0sukey/alloy-smelter.git

Usage

$ smelter <command> [options]

help

Display usage information.

$ smelter --help

generate

Pass to Alloy generate command(controller, view, style).

$ smelter generate controller foo
$ smelter generate view bar
$ smelter generate style baz
--template option

Using custom template option. Please prepare a template in process.env.HOME/.smelter/template/someWindow/controller.js, view.xml, style.tss.

$ smelter generate controller foo -T someWindow
$ smelter generate view bar -T someWindow
$ smelter generate style baz -T someWindow

copy

Bulk copy for controller, view and style files.

$ smelter copy foo bar
$ smelter copy foo bar/baz

move

Bulk move or rename for controller, view and style files.

$ smelter move foo bar
$ smelter move foo bar/baz

remove

Bulk remove for controller, view and style files.

$ smelter remove foo
$ smelter remove bar/baz

i18n

Internationalization dir/file management.

add
$ smelter i18n add en
remove
$ smelter i18n remove en

build

Pass to Titanium build command.

$ smelter build
$ smelter build iPhone5
$ smelter build -t '-p ios --retina --tall'
--no-complie option

Avoid Alloy compile in Titanium build. Temporarily remove the ti.alloy plugin. Please describe yourself to tiapp.xml in <plugin>ti.alloy</plugin>, If it does not return.

$ smelter build --no-compile
$ smelter build iPhone5 --no-compile
$ smelter build -t '-p ios --retina --tall' --no-compile

preset

Launch $EDITOR preset json file. Preset option using for build command.

$ smelter preset
default preset
{
	"iPhone5": "-p ios -Y iphone --retina --tall",
	"iPhone4": "-p ios -Y iphone --retina",
	"iPad": "-p ios -Y ipad --retina --tall"
}

install

Bulk install titanium, alloy cli and Titanium SDK.

$ smelter install

clean

Removes previous build and Resources directories.

$ smelter clean

stats

Statistics a Alloy project.

$ smelter stats

┌──────────────────┬─────────────────────────────────────┐
│ Project files    │                    controllers:   1 │
│                  │                          views:   3 │
│                  │                         styles:   1 │
│                  │                         models:   1 │
├──────────────────┼─────────────────────────────────────┤
│ View nodes       │                          Label:   8 │
│                  │                      TextField:   4 │
│                  │                         Window:   3 │
│                  │                       MenuItem:   3 │
│                  │                           View:   3 │
│                  │                     HeaderView:   2 │
│                  │                       ListView:   2 │
│                  │                      Templates:   2 │
│                  │                   ItemTemplate:   2 │
│                  │                    ListSection:   2 │
│                  │                       ListItem:   2 │
│                  │                           Menu:   1 │
│                  │               NavigationWindow:   1 │
│                  │                      TabbedBar:   1 │
│                  │                         Labels:   1 │
├──────────────────┼─────────────────────────────────────┤
│ Style selectors  │                        element:   9 │
│                  │                             id:   7 │
│                  │                          class:   2 │
├──────────────────┼─────────────────────────────────────┤
│ Using properties │                          title:   8 │
│                  │                         height:   7 │
│                  │                          width:   6 │
│                  │                         bottom:   6 │
│                  │                           left:   5 │
│                  │                         todoId:   4 │
│                  │                          color:   4 │
│                  │                            top:   4 │
│                  │                         bindId:   4 │
│                  │                          right:   3 │
│                  │                backgroundColor:   3 │
│                  │                       template:   2 │
│                  │                       hintText:   2 │
│                  │                           name:   2 │
│                  │            defaultItemTemplate:   2 │
│                  │                          value:   2 │
│                  │                              x:   2 │
│                  │                              y:   2 │
│                  │            windowSoftInputMode:   1 │
│                  │             backgroundGradient:   1 │
│                  │                           type:   1 │
│                  │                     startPoint:   1 │
│                  │                    exitOnClose:   1 │
│                  │                          index:   1 │
│                  │                       endPoint:   1 │
│                  │                         colors:   1 │
│                  │                   paddingRight:   1 │
│                  │                 selectionStyle:   1 │
│                  │                      textAlign:   1 │
│                  │                  verticalAlign:   1 │
│                  │                       editable:   1 │
│                  │                 separatorColor:   1 │
├──────────────────┼─────────────────────────────────────┤
│ Unique colors    │                         {done}:   2 │
│                  │                           #fff:   1 │
│                  │                        #fcfcfc:   1 │
│                  │                        #bcbac1:   1 │
│                  │                        #f6f6f6:   1 │
│                  │                           #333:   1 │
│                  │                        #d9d9d9:   1 │
├──────────────────┼─────────────────────────────────────┤
│ Event type       │                          click:   8 │
│                  │                       dblclick:   2 │
│                  │                          swipe:   2 │
│                  │                         return:   2 │
├──────────────────┼─────────────────────────────────────┤
│ Event listener   │                    doToggleall:   2 │
│                  │                       doToggle:   2 │
│                  │                         doEdit:   2 │
│                  │                       doDelete:   2 │
│                  │                       doEdited:   2 │
│                  │                          doAll:   1 │
│                  │                       doActive:   1 │
│                  │                    doCompleted:   1 │
│                  │                          doTab:   1 │
├──────────────────┼─────────────────────────────────────┤
│ Data binding     │                 dataCollection:   2 │
│                  │                  dataTransform:   2 │
│                  │                     dataFilter:   2 │
└──────────────────┴─────────────────────────────────────┘

License

The MIT License (MIT) Copyright (c) 2014 Kosuke Isobe