Socket
Socket
Sign inDemoInstall

@es-git/node-fs-repo

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@es-git/node-fs-repo

This is part of the [ES-Git](https://github.com/es-git/es-git) project.


Version published
Maintainers
1
Created
Source

node-fs-repo

This is part of the ES-Git project.

Install

npm install --save @es-git/node-fs-repo

Usage

This is an implementation of IRawRepo that uses the file system for storage. It uses the node fs and therefore really only works on the server. Use this to interface with an existing git repo created with the git cli.

important: you should use the zlib-mixin if you want to load an existing git repo created with the git cli.

import Repo from '@es-git/node-fs-repo';

const repo = new Repo(__dirname + '/.git');

await repo.init();
constructor(path : string)

Creates the repository instance. The path parameter points to a location in the filesystem where either a repo already exists or a new one should be made.

init() : Promise<void>

Initialize a new empty repository at the path provided in the constructor.

FAQs

Package last updated on 02 Dec 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc