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

generator-dsg-component

v0.0.12

Published

Yeoman generator and modified generator-dsg-component

Readme

generator-dsg-component

Yeoman generator Following AngularJS Style Guide : johnpapa guide

Forked from AngularJS-SPA-Development generator-sg-component

Getting Started

Yeoman Generators

To install generator-dsg-component from npm, run:

$ npm install -g generator-dsg-component

Finally, initiate the generator:

$ yo dsg-component

Generators

Available generators:

Route

Generates a new route.

Example:

yo dsg-component:route myroute
[?] Where would you like to create this route? (client/app)
[?] What will the url of your route be? /myroute

Produces:

client/app/myroute/myroute.js
client/app/myroute/myroute.controller.js
client/app/myroute/myroute.controller.spec.js
client/app/myroute/myroute.html
client/app/myroute/myroute.scss

Controller

Generates a controller.

Example:

yo dsg-component:controller user
[?] Where would you like to create this controller? (client/app)

Produces:

client/app/user/user.controller.js
client/app/user/user.controller.spec.js

Directive

Generates a directive.

Example:

yo dsg-component:directive myDirective
[?] Where would you like to create this directive? (client/app)
[?] Does this directive need an external html file? Yes

Produces:

client/app/myDirective/myDirective.directive.js
client/app/myDirective/myDirective.directive.spec.js
client/app/myDirective/myDirective.html
client/app/myDirective/myDirective.scss

Simple directive without an html file

Example:

yo dsg-component:directive simple
[?] Where would you like to create this directive? (client/app)
[?] Does this directive need an external html file? No

Produces:

client/app/simple/simple.directive.js
client/app/simple/simple.directive.spec.js

Component

Generates a component.

Example:

yo dsg-component:component myComponent
[?] Where would you like to create this component? (client/app)
[?] Does this component need an external html file? Yes

Produces:

client/app/myComponent/myComponent.component.js
client/app/myComponent/myComponent.component.spec.js
client/app/myComponent/myComponent.html
client/app/myComponent/myComponent.scss

Simple Component without an html file

Example:

yo dsg-component:component simpleComponent
[?] Where would you like to create this component? (client/app)
[?] Does this component need an external html file? No

Produces:

client/app/simpleComponent/simpleComponent.component.js
client/app/simpleComponent/simpleComponent.component.spec.js

Filter

Generates a filter.

Example:

yo dsg-component:filter myFilter
[?] Where would you like to create this filter? (client/app)

Produces:

client/app/myFilter/myFilter.filter.js
client/app/myFilter/myFilter.filter.spec.js

Service

Generates an AngularJS service. Usage is similar to Factory, Provider

Example:

yo dsg-component:service myService
[?] Where would you like to create this service? (client/app)

Produces:

client/app/myService/myService.service.js
client/app/myService/myService.service.spec.js

Decorator

Generates an AngularJS service decorator.

Example:

yo dsg-component:decorator myDecorator
[?] Where would you like to create this decorator? (client/app)

Produces

client/app/myDecorator/myDecorator.decorator.js

License

MIT