Skip to content

[Feature]: Read lines between a range #21

@fu050409

Description

@fu050409

Read the contents of a specific range of lines in a file rather than the entire file to save tokens in AI scenarios, while also reducing performance overhead from the NAPI native layer.

API may looks like:

await readFile("./test.ts",  { lines: { from: 110, to: 120 } })

This will read lines 110–120 of the test.ts file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions