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

@quartz/js-utils

Package Overview
Dependencies
Maintainers
8
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@quartz/js-utils - npm Package Compare versions

Comparing version 1.0.3 to 1.1.0

dist/parseDateGMT.d.ts

3

dist/index.d.ts
export { default as arrayFromRange } from './arrayFromRange';
export { default as hexToRGB } from './hexToRGB';
export { default as minifyCss } from './minifyCss';
export { default as parseDateGMT } from './parseDateGMT';
export { default as resizeWPImage } from './resizeWPImage';
export { default as stylizedTimestamp } from './stylizedTimestamp';
export { default as timeAgo } from './timeAgo';
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.resizeWPImage = exports.minifyCss = exports.hexToRGB = exports.arrayFromRange = void 0;
exports.timeAgo = exports.stylizedTimestamp = exports.resizeWPImage = exports.parseDateGMT = exports.minifyCss = exports.hexToRGB = exports.arrayFromRange = void 0;
var arrayFromRange_1 = require("./arrayFromRange");

@@ -10,4 +10,10 @@ Object.defineProperty(exports, "arrayFromRange", { enumerable: true, get: function () { return arrayFromRange_1.default; } });

Object.defineProperty(exports, "minifyCss", { enumerable: true, get: function () { return minifyCss_1.default; } });
var parseDateGMT_1 = require("./parseDateGMT");
Object.defineProperty(exports, "parseDateGMT", { enumerable: true, get: function () { return parseDateGMT_1.default; } });
var resizeWPImage_1 = require("./resizeWPImage");
Object.defineProperty(exports, "resizeWPImage", { enumerable: true, get: function () { return resizeWPImage_1.default; } });
var stylizedTimestamp_1 = require("./stylizedTimestamp");
Object.defineProperty(exports, "stylizedTimestamp", { enumerable: true, get: function () { return stylizedTimestamp_1.default; } });
var timeAgo_1 = require("./timeAgo");
Object.defineProperty(exports, "timeAgo", { enumerable: true, get: function () { return timeAgo_1.default; } });
//# sourceMappingURL=index.js.map

4

package.json
{
"name": "@quartz/js-utils",
"version": "1.0.3",
"version": "1.1.0",
"description": "A collection of reusable JavaScript utilities for Quartz products.",

@@ -15,3 +15,3 @@ "main": "dist/index.js",

"build": "tsc",
"prepublish": "npm run build"
"prepublishOnly": "npm run build"
},

@@ -18,0 +18,0 @@ "repository": {

@@ -1,3 +0,36 @@

# JavaScript utilities
# Quartz JavaScript utilities
A collection of reusable JavaScript utilities for Quartz products.
[![npm version](https://badge.fury.io/js/%40quartz%2Fjs-utils.svg)](https://www.npmjs.com/package/@quartz/js-utils)
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`).

Sorry, the diff of this file is not supported yet

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