Skip to content

Commit

Permalink
Bumped version.
Browse files Browse the repository at this point in the history
  • Loading branch information
springcomp committed Mar 15, 2023
1 parent 2c44311 commit 4538bad
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
12 changes: 4 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,14 @@ npm install @jmespath-community/jmespath
### `search(data: JSONValue, expression: string): JSONValue`

```javascript
/* using ES modules */
import { search } from '@jmespath-community/jmespath';


/* using CommonJS modules */
const search = require('@jmespath-community/jmespath').search;


search({foo: {bar: {baz: [0, 1, 2, 3, 4]}}}, "foo.bar.baz[2]")
search(
{foo: {bar: {baz: [0, 1, 2, 3, 4]}}},
"foo.bar.baz[2]"
);

// OUTPUTS: 2

```

In the example we gave the `search` function input data of
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@jmespath-community/jmespath",
"description": "Typescript implementation of the JMESPath Community specification",
"version": "0.4.0",
"version": "1.1.0",
"author": {
"name": "JMESPath Community",
"email": "[email protected]",
Expand Down

0 comments on commit 4538bad

Please sign in to comment.