Observed since 20 Oct, 21:09 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
7hoo-autocode
代码自动生成器,从代码模板生成业务代码
copy template code directory or file into your business module directory. 复制模板代码目录或文件到您的业务模块目录.
npm install -g 7hoo-autocode
autocode init该方法会在根目录下自动生成__.autocode__文件夹及其子文件夹和文件
autocode yourModule yourCustomModuleName
使用双花括号作为占位符: {{yourVariable}}
###Filter
占位符支持过滤器, 使用|作为过滤器开关: {{yourVariable|yourFilter}}
目前支持五种过滤器: capitalize、xapitalize、camelize、toLowerCase、toUpperCase
autocode包含如下内置变量: __filepath__、__filename__、__date__、__moduleprefix__, 这些变量可用于代码模板内.
yourCustomModuleName在上述How to use?第5步中的yourModule对应于代码模板目录下各子目录名.
比如 .autocode/tpl/ui 对应的yourModule为__ui__
Download counts and popularity will appear here as the collector receives them.
Declarations describe requirements; they are not a resolved dependency graph.
Source distribution
{
"shasum": "8acb4e32811a2cfb26d1310a1a5afeab1a84ff57",
"tarball": "https://registry.npmjs.org/7hoo-autocode/-/7hoo-autocode-0.3.6.tgz",
"integrity": "sha512-1w8HPHpgMERM8xISRgZCAqRD8xdzoLJZb1vO4VQmI9I30526OLjNgnDo/u1TmM4tHf+Bdm7DswJChteJvGrg4A==",
"signatures": [
{
"keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
"sig": "MEQCIEvth0HB+5etCs+O8Ba0CCq42HY54SB+ztloKaDzdJ02AiAQw69RCAjhQjROTiqXz8TAAmO0qnKz570o/cyz2EOHJw=="
}
]
}Shared repository data · GitHub
HTTP 301 · detected 22 Oct 2026
Reported destinationObserved since 20 Oct, 21:09 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package_version:a2efa27038816b64226492d35473ce81271fd2c398e78a6765bd2db5ba88aab8