
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.
Quickly write, organize, and run node.js build scripts/tasks with act.
$ npm install -g node-act
task-name.js, to the act-tasks directory. The name of the file is the name of the task. The name must start with a lower-case letter, and the file should export a Task.$ cd <your-project-root>
# BASIC USE
$ act <task> [...-method]
# PASS VALUES
$ act <task=> <value>
$ act <task> <-method=> <value>
$ act <task=> <defaultMethodsValue> <-method=> <methodValue> <-method>
# RUN MULTIPLE TASKS
$ act <task> <task> <task>
$ act <task> <-method> <task> <task=> <value>
# SHOW HELP INFO
$ act
$ act ?
$ act -h
$ act --help
# SHOW VERSION
$ act -v
$ act --version
All task scripts must export an object or function with the below properties.
| Property | Type | Alias | Details |
|---|---|---|---|
| description (optional) | string | desc,descrip | The description for the task. |
| value (optional) | string | val | If the task accepts a value this string should be a one-word description for it. |
| method | function | The action for the task. If the task exports a function this property is not required. |
| Property | Type | Alias | Details |
|---|---|---|---|
| description (optional) | string | desc,descrip | The description for the task. |
| value (optional) | string | val | If the task accepts a default value this string should be a one-word description for the value. |
| default | string | The methods executed if the task is called without any arguments (e.g. "-method= value -method"). | |
| methods | object<string, Method> | The methods for the task. |
| Property | Type | Alias | Details |
|---|---|---|---|
| description (optional) | string | desc,descrip | The description for the method. |
| value (optional) | string | val | If the method accepts a value this string should be a one-word description for it. |
| method | function | The action for the method. If the Method is a function (instead of an object) this property is not required. |
To change the act config just add config.json to your act-tasks directory with your desired settings.
You may create task aliases by adding an alias property to your config.json. The alias property's value should be an object with name => command pairs.
{
"alias": {
"name": "task -method task= value -method"
},
"throw": false,
"exit": true,
"done": true
}
contributing: see contributing guideline
bugs/improvements: open an issue
questions: imagineadamsmith@gmail.com
Happy Developing
FAQs
a simple task runner
The npm package node-act receives a total of 9 weekly downloads. As such, node-act popularity was classified as not popular.
We found that node-act 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.