New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@gorb/shared

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
Package was removed
Sorry, it seems this package was removed from the registry

@gorb/shared

Vinyl and other building blocks for Gorb and Gulp plugins

latest
Source
npmnpm
Version
0.1.6
Version published
Maintainers
1
Created
Source

@gorb/shared Node.js CI

Vinyl and other building blocks for Gorb and Gulp plugins.

  • Zero dependency. But only supports Nodejs v18+.
  • Kept as much as possible the original code from following projects.

Vinyl

https://github.com/gulpjs/vinyl

Removed stream support from original.

  import { Vinyl, VinylOptions } from '@gorb/shared';
  new Vinyl({
    cwd: '/',
    base: '/src/',
    path: '/src/test.txt',
    contents: Buffer.from('test')
  });

PluginError

https://github.com/gulpjs/plugin-error

In TypeScript project, the return type of new PluginError(...) is not as flexible as the original. This is due to we didn't use TypeScript namespace.

The type definitions for the options is not PluginError.Options anymore. Use PluginErrorOptions.

  import { PluginError, PluginErrorOptions } from '@gorb/shared';
  new PluginError("plugin-name", "something broke");
  new PluginError("plugin-name", { message: "something broke" });
  new PluginError({ plugin: "test", message: "something broke" });
  new PluginError("plugin-name", new Error("something broke"), {showStack: true});

log

https://github.com/gulpjs/fancy-log

Removed checking colour support. Assumes user terminal supports ansi colour.

  import { log } from '@gorb/shared';
  log("message");
  log.info("message");
  log.warn("message");
  log.error("message");
  log.dir(obj);

Keywords

gorb

FAQs

Package last updated on 15 May 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