Socket
Book a DemoInstallSign in
Socket

@atb-as/generate-assets

Package Overview
Dependencies
Maintainers
0
Versions
227
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@atb-as/generate-assets

OOS Design System generate-assets

18.3.1
latest
npmnpm
Version published
Weekly downloads
406
114.81%
Maintainers
0
Weekly downloads
 
Created
Source

@atb-as/generate-assets

Usage

Run as CLI:

Format:

Usage: npx @atb-as/generate-assets [options] <type> <orgId>

Arguments:
  type                           Type of assets to generate (choices: "colors", "all", "mono")
  orgId                          Generate for specific organization (choices: "atb", "nfk", "fram", "troms", "innlandet", "vkt", "farte")

Options:
  -o, --out-dir <output>         Output directory
  -d, --debug                    Log all files generated (default: false)
  -nm, --no-generate-mono-theme  Ignore generating themed mono-icons, but keep general mono icons.
  -g, --glob [glob]              Pass in custom glob for matching files. (default: "**/*.{svg,png,jpg,jpeg,ico}")
  -h, --help                     display help for command

As a local dependency

npm install -D @atb-as/generate-assets

# Run locally installed bin
npx generate-assets -h

Import through ts/js:

import { generateAssets } from '@atb-as/generate-assets';

// This line will copy assets for selected orgId to selected destinationDirectory
generateAssets(
  assetType: AssetTypes,
  orgId: ThemeVariant,
  destinationDirectory: string,
  opts: Options = defaultOpts,
)

// Where options are:
type Options = {
  generateMonoTheme?: boolean;
  onlyOutputMono?: boolean;
  patterns?: string | readonly string[];
};
const defaultOpts: Options = {
  generateMonoTheme: true,
  onlyOutputMono: false,
};

FAQs

Package last updated on 04 Aug 2025

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.