Skip to content

Commit

Permalink
feat(alias): add comment and comments as aliases to values
Browse files Browse the repository at this point in the history
  • Loading branch information
bahmutov committed Feb 13, 2017
1 parent ca55d70 commit 7f52d94
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ Read more about the problem and this tool solves it in blog post

## What does comment-value do?

`comment-value` or `values` for short executes your Node program,
instrumenting it on the fly. Every time it sees a special comment that
starts with `//>`, it will set it value from whatever the expression
immediately to its left is.
`comment-value` (or available aliases `values`, `comment`, `comments`)
executes your Node program, instrumenting it on the fly.
Every time it sees a special comment that starts with `//>`,
it will set it value from whatever the expression immediately to its left is.

When Node finishes, the file is saved back with updated comments.

Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@
"bin": {
"cv": "bin/comment-value.sh",
"comment-value": "bin/comment-value.sh",
"values": "bin/comment-value.js"
"values": "bin/comment-value.js",
"comment": "bin/comment-value.js",
"comments": "bin/comment-value.js"
},
"publishConfig": {
"registry": "http://registry.npmjs.org/"
Expand Down

0 comments on commit 7f52d94

Please sign in to comment.