Socket
Socket
Sign inDemoInstall

abstgit

Package Overview
Dependencies
0
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    abstgit

A set of helper functions to use git


Version published
Weekly downloads
11
increased by1000%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

abstgit

A set of helper functions for git

NOTE! This project is in heavy developement and is not stable, therefore it sholud not be used for production! You are advised

Introduction

Git has revolutionized the developement space. It helps massevely with collaboration in small and big projects. But there is no modern abstraction over git that you can use for your projects. abstgit aims to be a minimal (no dependencies) set of helper functions for working with git.

Installation

npm i --save-dev abstgit

Yarn & pnpm are also supported.

abstgit requires node v12 (you need to enable esm), but we officially support only the latest LTS and it's tested on the latest version of Node. if you encounter issues with a version below the LTS, don't expect much help.

Usage

import { clone } from 'abstgit/clone/clone';

clone("micziz/git-utlis")

This will clone in the current node direcotry (generally the root of your project, but you can change it with process.chdir)

If you want to clone to a specific direcotry, use cloneTo.

import { cloneTo } from 'abstgit/clone/clone';

cloneTo("micziz/abstgit", "utils")

Check the documentation for all the available utilities!

Contributing

Pull request are welcome! If you would like to contribute, please read the contributing.md.

License

Apache 2.0

FAQs

Last updated on 25 Aug 2022

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc