0.2.0 • Published 2 years ago

@tdcerhverv/typed-svg-modules v0.2.0

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

Developer tools for auto generating .d.ts files from .svg files

Features

  • Provides command tsm and options, see usage.
  • The command will .d.ts declaration for .svg files, inspired by typed-css-modules.

Note: If you have locally defined .d.ts files for your .svg they will not be overwritten

Install

npm i -D @tdcerhverv/typed-svg-modules

Usage

Once installed as a dependency, run this command to get all options

npx tsm <search directory>

Or run npx tsm -h to get help

Create .svg.d.ts from *.svg files.
Usage: tsm <search directory> [options]

Options:
  -s             Silent output. Does not show "info" messages          [boolean]
  -h             Show help                                             [boolean]
  -v, --version  Show version number                                   [boolean]

Examples:
  tsm src
0.2.0

2 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago