
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
A simple CLI for scaffolding code fragment.(A code generator from your custom template)
一个代码片段生成工具。
Prerequisites: Node.js (>=4.x, 6.x preferred), npm version 3+ and Git.
$ npm install -g daneel
After you've created a project, you need lots of the same code for business modules
$ cd <Your business directory>
$ daneel daneel-template[#<branch-name>]
$ Input your property pairs (label and variable)
$ cd <Your business directory>
$ daneel <github-name>/<template-project-name>[#<branch-name>]
$ Input your property pairs (label and variable)
$ cd <Your business directory>
$ daneel <Your template directory (absolute path or relative path)>
$ Input your property pairs (label and variable)
More usage: download-git-repo
$ cd ./src/view/TestDaneel
$ daneel zhouytforever/daneel-template#iview
$ Input my property pairs (label and variable)
{{label}} : A label inputed in daneel-cli.{{variable}} : A variable inputed in daneel-cli.{{#pairs}} : An array contains {{label}} and {{variable}} just like [{label: Name, variable: name}].{{pairs}} : The end tag of {{#pairs}}.Template you defined :
<Form inline :label-width="100">
{{#pairs}}
<FormItem label="{{label}}" prop="{{variable}}">
<Input v-model="searchCondition.{{variable}}" />
</FormItem>
{{/pairs}}
<FormItem>
<Button type="primary" @click="onSearch">查询</Button>
<Button @click="() => { this.onSearch(true) }">重置</Button>
</FormItem>
</Form>
Command you inputed :
$ daneel daneel-template
? Please input your property label.(e.g 名字): $ 名字
? Please input your property variable.(e.g name): $ name
? Need next pair ? $ y
? Please input your property label.(e.g 名字): $ 性别
? Please input your property variable.(e.g name): $ sex
? Need next pair ? $ n
Code daneel generated :
<Form inline :label-width="100">
<FormItem label="名字" prop="name">
<Input v-model="searchCondition.name" />
</FormItem>
<FormItem label="性别" prop="sex">
<Input v-model="searchCondition.sex" />
</FormItem>
<FormItem>
<Button type="primary" @click="onSearch">查询</Button>
<Button @click="() => { this.onSearch(true) }">重置</Button>
</FormItem>
</Form>
It's a util created to help code like a robot
A robot should like :
FAQs
A cli tool for you to create a module of code from a template (e.g CURD)
We found that daneel demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.