Socket
Socket
Sign inDemoInstall

tiged

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tiged - npm Package Compare versions

Comparing version 2.12.3 to 2.12.4

2

package.json
{
"name": "tiged",
"version": "2.12.3",
"version": "2.12.4",
"engines": {

@@ -5,0 +5,0 @@ "node": ">=8.0.0"

> This is a community driven fork of [degit](https://github.com/Rich-Harris/degit) because it isn't being maintained.
<div align="center">
# tiged — straightforward project scaffolding
![tiged-logo](https://user-images.githubusercontent.com/6876030/195346830-f1804e60-2842-436a-b013-a3b2095cea8e.png)
<sup>Stable diffusion (AI) generated logo</sup>
[![Build Status](https://img.shields.io/endpoint.svg?url=https%3A%2F%2Factions-badge.atrox.dev%2Ftiged%2Ftiged%2Fbadge%3Fref%3Dmain&style=flat)](https://actions-badge.atrox.dev/tiged/tiged/goto?ref=main)

@@ -11,4 +16,4 @@ [![Known Vulnerabilities](https://snyk.io/test/npm/degit/badge.svg)](https://snyk.io/test/npm/tiged)

[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](http://makeapullrequest.com)
</div>
**tiged** makes copies of git repositories. When you run `tiged some-user/some-repo` or (for backward compatibility) `degit some-user/some-repo`, it will find the latest commit on https://github.com/some-user/some-repo and download the associated tar file to `~/.degit/some-user/some-repo/commithash.tar.gz` if it doesn't already exist locally. (This is much quicker than using `git clone`, because you're not downloading the entire git history.)

@@ -15,0 +20,0 @@

@@ -37,12 +37,21 @@ const fs = require('fs-extra');

function exec(command) {
function exec(command, size = 500) {
return new Promise((fulfil, reject) => {
child_process.exec(command, (err, stdout, stderr) => {
if (err) {
reject(err);
return;
child_process.exec(
command,
{ maxBuffer: 1024 * size },
(err, stdout, stderr) => {
if (err) {
reject(err);
return;
}
fulfil({ stdout, stderr });
}
fulfil({ stdout, stderr });
});
);
}).catch(err => {
if (err.code === 'ERR_CHILD_PROCESS_STDIO_MAXBUFFER') {
return exec(command, size * 2);
}
return Promise.reject(err);
});

@@ -49,0 +58,0 @@ }

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