@quartz/js-utils
A collection of reusable JavaScript utilities for Quartz products.
Last updated 3 months ago by chriszarate .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @quartz/js-utils 
SYNC missed versions from official npm registry.

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).

Current Tags

  • 1.1.1                                ...           latest (3 months ago)

6 Versions

  • 1.1.1                                ...           3 months ago
  • 1.1.0                                ...           3 months ago
  • 1.0.3                                ...           3 months ago
  • 1.0.2                                ...           3 months ago
  • 1.0.1                                ...           3 months ago
  • 1.0.0                                ...           3 months ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 6
Dependencies (0)
None
Dev Dependencies (6)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |