Skip to main content

Install

Installation is simple. First, run one of the following two commands, depending on whether you’re using Yarn or npm:

yarn add --dev rugged

Then, add rugged to the package.json file’s test script:

package.json
{
"scripts": {
"test": "rugged"
}
}

If you already have a test script, add && rugged to the end of it:

package.json
{
"scripts": {
"test": "... && rugged"
}
}