Skip to content

1.0.0/1.0.4 - frantic-ducks

Compare
Choose a tag to compare
@sindresorhus sindresorhus released this 11 Jan 17:42
· 104 commits to master since this release

Rewritten with a better API and CLI output.

tumblr_ng6pczbvfl1qdlh1io1_400

Update

$ npm install --global psi

Improved CLI UI

  • Humanized URL
  • More succinct labels
  • Empty stats removed
  • Various other tweaks

Improved API

The API no longer outputs to the terminal. You can use the psi.output() method to do that.

The url option is now the first argument instead of the options object.

The default strategy changed from desktop to mobile. As mobile is eating the world.

Before
psi({
    url: 'todomvc.com',
    strategy: 'desktop'
}, function (error, data) {
    console.log(data);
});
After
psi('todomvc.com', {strategy: 'desktop'}, function (error, data) {
    console.log(data);
});

Changes

v0.1.6...v1.0.4