es-git 0.0.12 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,4 +1,38 @@
1
- # es-git
1
+ ![wallpaper](./docs/public/og.png)
2
+
3
+ # es-git · [![MIT License](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/toss/es-git/blob/main/LICENSE) [![NPM badge](https://img.shields.io/npm/v/es-git?logo=npm)](https://www.npmjs.com/package/es-git)
4
+
5
+ English | [한국어](https://github.com/toss/es-git/blob/main/README-ko_kr.md)
6
+
7
+ es-git is a modern git library built for Node.js. With its simple and intuitive interface, even complex git operations
8
+ can be easily integrated, and the built-in TypeScript types ensure fast and reliable development.
9
+
10
+ es-git builds high-performance git functionality across different operating systems by using [napi-rs](https://napi.rs/)
11
+ to compile a native module from [git2-rs](https://github.com/rust-lang/git2-rs), which binds to libgit2.
12
+
13
+ Furthermore, by offering pre-built native modules tailored to your OS and CPU architecture without relying
14
+ on node-gyp, the module can be installed effortlessly without the need to build it locally.
15
+
16
+ ## Examples
17
+
18
+ ```ts
19
+ import { cloneRepository } from 'es-git';
20
+
21
+ const repo = await cloneRepository('https://github.com/toss/es-git', '/path/to/clone');
22
+ const head = repo.head().name();
23
+ console.log(head); // "refs/heads/main"
24
+ ```
25
+
26
+ ## Documentation
27
+
28
+ - [Usage](https://es-git.slash.page/usage/repository.html)
29
+ - [Reference](https://es-git.slash.page/reference/Repository/openRepository.html)
30
+
31
+ ## Contributing
32
+
33
+ We welcome contribution from everyone in the community. Read below for detailed contribution guide.
34
+
35
+ [CONTRIBUTING](https://github.com/toss/es-git/blob/main/.github/CONTRIBUTING.md)
2
36
 
3
37
  ## License
4
38