locutusjs / locutus

Bringing stdlibs of other programming languages to JavaScript for educational purposes

Home Page:https://locutus.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Consider using "bin" property of package.json to reference CLI app

niksy opened this issue · comments

Using bin property of package.json you can easily reference CLI app and make it available to npm scripts.

Instead of this:

{
  "build-phpjs": "node node_modules/phpjs/bin/phpjs.js --action buildnpm --name nl2br"
}

It can be used like this:

{
  "build-phpjs": "phpjs.js --action buildnpm --name nl2br"
}

Is this something you would consider using?

I think that makes sense yes!