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

@quartz/js-utils

Package Overview
Dependencies
Maintainers
6
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@quartz/js-utils

A collection of reusable JavaScript utilities for Quartz products.

  • 2.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
6
Weekly downloads
 
Created
Source

Quartz JavaScript utilities

npm version

A collection of reusable JavaScript utilities for Quartz products, with optional TypeScript support.

All functions are written in TypeScript and transpiled into ES2017 JavaScript (with type definitions).

Installation

npm i @quartz/js-utils

Usage

Import functions from the js-utils package, e.g.

import { arrayFromRange, resizeWPImage } from '@quartz/js-utils'

TypeScript hints are available if the file into which the functions are imported is a .ts or .tsx file.

Contributing

Functions must be written in TypeScript whenever possible.

Export one function per file with a test suite (.test.js).

Before opening a pull request

  • Export any new functions to src/index.ts
  • Add a test suite for any new functions
  • Ensure tests pass (npm t)
  • Increment the package.json version using npm version

Deploying

Use npm publish to publish the package to npm. TypeScript will be built on publish (via npm run build).

FAQs

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