🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

abstgit

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

abstgit

A set of helper functions to use git

0.1.5
latest
npm
Version published
Maintainers
1
Created
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

Package last updated on 25 Aug 2022

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