Skip to content

Commit

Permalink
prettier --write '**/*.md'
Browse files Browse the repository at this point in the history
  • Loading branch information
papandreou committed May 10, 2020
1 parent 30ca6f3 commit f39abef
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions README.md
@@ -1,5 +1,4 @@
uninspected
===========
# uninspected

Replacement for util.inspect and the console object.

Expand All @@ -11,22 +10,22 @@ Replacement for util.inspect and the console object.
```javascript
var uninspected = require('uninspected');

var str = uninspected.inspect({foo: 'bar'}); // "{ foo: 'bar' }"
var str = uninspected.inspect({ foo: 'bar' }); // "{ foo: 'bar' }"

uninspected.log('foo', {bar: /hey/}); // { bar: /hey/ }
uninspected.log('foo', { bar: /hey/ }); // { bar: /hey/ }

// Or use this shorthand:
uninspected('foo', {bar: /hey/}); // { bar: /hey/ }
uninspected('foo', { bar: /hey/ }); // { bar: /hey/ }
```

The library also includes diffing support (powered by Unexpected's diffing engine):

```javascript
uninspected.diff({foo: 'bar'}, {foo: 'baz'});
uninspected.diff({ foo: 'bar' }, { foo: 'baz' });
{
foo: 'bar' // should be 'baz'
// -bar
// +baz
foo: 'bar'; // should be 'baz'
// -bar
// +baz
}
```

Expand Down

0 comments on commit f39abef

Please sign in to comment.