Skip to content

Work with In-Memory Folder #2004

@humanely

Description

@humanely

System information

  • node version: v22.2.0
  • npm or yarn version: 10.8.1
  • OS/version/architecture: MACOS 14.5 (23F79)
  • Applicable nodegit version: 0.27
node -v
npm -v # (or yarn -v)
node -e "console.log(process.platform)"
node -e "console.log(require('os').release())"
node -e "console.log(console.log(process.arch))"

Currently for my usecase, I want to pull/push files from DB to Git and vice versa. I don't want to create tmp folders due to distributed servers and disk outage concerns. Is there a way to create 'tmp' folder in memory and work with nodegit?
Or have I misunderstood the purpose of this library? Something like memfs https://github.com/streamich/memfs/blob/master/demo/git/README.md

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions