Skip to content

Commit

Permalink
docs: update first readme code snippet
Browse files Browse the repository at this point in the history
  • Loading branch information
AlessioGr committed Jun 27, 2024
1 parent 6b642c2 commit c3de3e4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ The **qs** module was originally created and maintained by [TJ Holowaychuk](http
## Usage

```javascript
var qs = require('qs');
var assert = require('assert');
import qs from 'qs-esm';
import assert from 'assert';

var obj = qs.parse('a=c');
const obj = qs.parse('a=c');
assert.deepEqual(obj, { a: 'c' });

var str = qs.stringify(obj);
const str = qs.stringify(obj);
assert.equal(str, 'a=c');
```

Expand Down

0 comments on commit c3de3e4

Please sign in to comment.