New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

generator-yo-ng-js

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

generator-yo-ng-js

Yeoman ES6 generator for AngularJs. Generate components, directives, controllers, services or filters.

  • 1.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

node-version dependencies JavaScript Style Guide

Yeoman Generator for AngularJs. Generate either a component, directive, controller, service or a filter.

You'll get prompted with the follow questions; you can skip the first two questions by using arguments (see below):

  • What you want to generate; controller, component etc
  • It's name
  • The name of the Angular module to associate with your choice (if you don't supply a name, a module file will not be created)

Install

Install Yeoman and yo-ng-js.

npm install -g yo generator-yo-ng-js

Usage

Run the generator by using the following:

yo yo-ng-js

For example, creating a component called example will produce the following (components and directives will generate an associated controller and template):

example/
  example.component.js
  example.controller.js
  example.html
  example.js

Using Arguments

You can shortcut the first two questions by passing some arguments.

Pass what you want to generate as the first argument.

yo yo-ng-js component

Pass the name of your choice as the second argument.

yo yo-ng-js component my-component-name

Create an Alias

Add the following to your ~/.bash_aliases.

ng() {
  yo yo-ng-js "$1" "$2"
}

Then you can just run:

ng component my-component-name

Keywords

FAQs

Package last updated on 19 Jul 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc