Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@taqueria/common-utils

Package Overview
Dependencies
Maintainers
6
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@taqueria/common-utils

A module of functions shared between both deno and node runtime

  • 0.12.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
6
Created
Source

Common Utilities

Functions shared between both deno and node runtime

Functions

Pipe It combines n functions, calling each function with the output of the last one.

Encode Take a string to be encoded and return a Uint8Array.

Noop A helper function to return void in pipe.

Format functions Format msg in a standardized way that can be output to the console. E.g., formatMsg might return a msg that is using escape sequences to indicate that the color should be white.

Output functions Writes an encoded msg (Uint8Array) to a writer, such as stdout or stderr. E.g. outputMsg() would accept a encoded msg as an argument, and write it to a Writer.

Render functions Formats a msg using a format function, and outputs the msg using an output function. E.g. renderMsg() would accept a msg of an unknown type, format it using the given formatter, and output it using the given outputter.

Keywords

FAQs

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

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