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

json_generate

v1.1.8

Published

File generator, generate file templates and export them in the index file, taro generated files only need to be used in the project directory to generate page folders in the pages directory, and configure pages in app.config;文件生成器, 生成文件模板并且在 index 文件导出, t

Downloads

17

Readme

Desc/概述


File generator, generate file templates and export them in the index file, taro generated files only need to be used in the project directory to generate page folders in the pages directory, and configure pages in app.config;文件生成器, 生成文件模板并且在 index 文件导出, taro 生成文件只需要在项目目录使用便可以在 pages 目录下生成页面文件夹, 以及在 app.config 中配置页面;


| command/指令 | full name/全称 | description/描述 | | :----------- | :-------------- | :----------------------------------------------------------------- | | tp | Taro page | Generate a new Taro page./生成一个 Taro 页面文件 | | nc | Nest controller | Generate a new Nest controller./生成一个 Nestjs 的 controller 文件 | | ns | Nest service | Generate a new Nest service./生成一个 Nestjs 的 service 文件 | | vue2 | Vue2 file | Generate a new Vue2 file./生成一个 Vue2 文件 | | vue3 | Vue3 file | Generate a new Vue3 file./生成一个 Vue3 文件 | | vue | Vue3 file | Generate a new Vue3 file./生成一个 Vue3 文件 | | ts | TypeScript file | Generate a new TypeScript file./生成一个 TypeScript 文件 | | js | JavaScript file | Generate a new JavaScript file./生成一个 JavaScript 文件 |


install/安装

npm i json_generate -g

yarn add json_generate -g

grammar/语法:

  json_g [command] [name] [lang]

example/例如:

  json_g tp demo ts <!-- The following languages are optional/ 语言可选 -->