JavaScript
import { createCognitioClient } from "@cognitio/sdk
const client = createCognitioClient()
await client.find.text({
...
})[
{
"path": {
"text": "<string>"
},
"lines": {
"text": "<string>"
},
"line_number": 123,
"absolute_offset": 123,
"submatches": [
{
"match": {
"text": "<string>"
},
"start": 123,
"end": 123
}
]
}
]API Reference
Find text
Search for text patterns across files in the project using ripgrep.
GET
/
find
JavaScript
import { createCognitioClient } from "@cognitio/sdk
const client = createCognitioClient()
await client.find.text({
...
})[
{
"path": {
"text": "<string>"
},
"lines": {
"text": "<string>"
},
"line_number": 123,
"absolute_offset": 123,
"submatches": [
{
"match": {
"text": "<string>"
},
"start": 123,
"end": 123
}
]
}
]