{"id":19934087,"url":"https://github.com/quartz/js-utils","last_synced_at":"2025-05-03T12:30:29.818Z","repository":{"id":47020586,"uuid":"287127534","full_name":"Quartz/js-utils","owner":"Quartz","description":"A collection of reusable JavaScript utilities for Quartz products.","archived":false,"fork":false,"pushed_at":"2022-07-20T17:20:08.000Z","size":157,"stargazers_count":2,"open_issues_count":0,"forks_count":3,"subscribers_count":11,"default_branch":"main","last_synced_at":"2025-04-18T08:18:51.703Z","etag":null,"topics":["helpers","typescript","utility-library"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Quartz.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-08-12T22:27:38.000Z","updated_at":"2023-09-07T15:21:00.000Z","dependencies_parsed_at":"2022-09-11T20:11:03.490Z","dependency_job_id":null,"html_url":"https://github.com/Quartz/js-utils","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Quartz%2Fjs-utils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Quartz%2Fjs-utils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Quartz%2Fjs-utils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Quartz%2Fjs-utils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Quartz","download_url":"https://codeload.github.com/Quartz/js-utils/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252190444,"owners_count":21708882,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["helpers","typescript","utility-library"],"created_at":"2024-11-12T23:15:49.389Z","updated_at":"2025-05-03T12:30:29.547Z","avatar_url":"https://github.com/Quartz.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Quartz JavaScript utilities\n\n[![npm version](https://badge.fury.io/js/%40quartz%2Fjs-utils.svg)](https://www.npmjs.com/package/@quartz/js-utils)\n\nA collection of reusable JavaScript utilities for Quartz products, with optional TypeScript support.\n\nAll functions are written in TypeScript and transpiled into ES2017 JavaScript (with type definitions).\n\n## Installation\n\n`npm i @quartz/js-utils`\n\n## Usage\n\nImport functions from the js-utils package, e.g.\n\n`import { arrayFromRange, resizeWPImage } from '@quartz/js-utils'`\n\nTypeScript hints are available if the file into which the functions are imported is a `.ts` or `.tsx` file.\n\n## Contributing\n\nFunctions must be written in TypeScript whenever possible.\n\nExport one function per file with a test suite (`.test.js`).\n\n### Before opening a pull request\n\n- Export any new functions to `src/index.ts`\n- Add a test suite for any new functions\n- Ensure tests pass (`npm t`)\n- Increment the `package.json` version using `npm version`\n\n## Deploying\n\nUse `npm publish` to publish the package to npm. TypeScript will be built on publish (via `npm run build`).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquartz%2Fjs-utils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fquartz%2Fjs-utils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquartz%2Fjs-utils/lists"}