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

ng4-tool

v1.2.9

Published

- 支持初始化Angular5单页面项目(暂时必须配置CDN以及git、gitlab部署)。 - 支持快速创建component、module、directive、ngrx、pipe等文件。 - 支持ngrx4。 - 支持单元测试。 - 暂时只支持AOT模式。 - 推荐使用 `mobk` 代替 `ngrx`。 - *`-t type` 增加 `spec-c`、 `spec-p`、 `spec-d`、 `spec-s` 四种类型快速创建单元测试模板 *。 - *新增对官方工具 [`ng-cli` ](htt

Downloads

23

Readme

ng4-tool

  • 支持初始化Angular5单页面项目(暂时必须配置CDN以及git、gitlab部署)。
  • 支持快速创建component、module、directive、ngrx、pipe等文件。
  • 支持ngrx4。
  • 支持单元测试。
  • 暂时只支持AOT模式。
  • 推荐使用 mobk 代替 ngrx
  • *-t type 增加 spec-cspec-pspec-dspec-s 四种类型快速创建单元测试模板 *。
  • 新增对官方工具 ng-cli 命令的支持
  • *-t type 增加 s 创建mobk store模板(默认采用严格模式,内置异步action类型) *。

安装命令 npm install ng4-tool -g

~~ng4 init 初始化基于Angular的整个项目,暂不支持目录设置,默认初始到命令行 pwd 当前目录。~~

ng4 init 初始化基于Angular5的整个项目,支持 -p 命令进行目录设置 。 ng4 mpa 初始化基于Angular5的多页面项目,支持 -p 命令进行目录设置 。

ng4 create 快速创建component、module、directive、ngrx、pipe等文件 ,使用 ng4 -h 查看参数配置。 ng4 check [componentname] 快速渲染组件,暂时不支持参数设置(t、n、p) ,使用 ng4 -h 查看参数配置。

  • -t 支持c component、m module、d directive、s mobk、n ngrx、a action、p pipe等文件、spec-c component-spec、spec-p pipe-spec、spec-d directive-spec,spec-s service-spec,默认为component类型。
  • -n 文件名及组件名,默认为template及Template。ng4 -n test 文件名为 test.[-t].ts 组件名为 Test[-t]
  • -p 路径暂时只支持相对路径