Faircode CLI
Faircode helps companies keep track of and pay for the software they use. The faircode
command line tool searches your repository for installed packages (node_modules
) and lists the ones with Faircode IDs associated with them.
To install:
npm install -g faircode
Then to list all locally installed packages with Faircode IDs:
faircode list
We recommend running faircode register-build
after each build of your package (for instance on CI). This automatically updates your software subscriptions on Faircode (removing old ones, adding new ones), to make sure you're always in sync.
You can list available commands with
faircode --help
To add a Faircode ID to your own project, first register at faircode.io, then update your package.json
:
{
"faircodeId": "YOUR_ID"
}