Socket
Book a DemoInstallSign in
Socket

stylus-to-typescript-converter

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stylus-to-typescript-converter

Converts basic Stylus variables and groups to TypeScript for use as inline styles.

0.2.1
latest
npmnpm
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

Stylus to TypeScript Converter

Converts very basic .styl files into .ts files.

Basic usage

npm install -g stylus-to-typescript-converter
stsc -i ./my-style.styl -o ./my-styl.ts

General usage instructions

> stsc

Stylus to TypeScript Converter (STSC)

  Converts Stylus variables and classes to TypeScript. 

Options

  -i, --input file    The path to a Stylus file to convert to TypeScript.             
  -o, --output file   The path where the generated TypeScript output will be written. 
  -v, --verbose       Enables verbose logging.                                        
  --doubleQuotes      Enables double quotes around strings in generated output.

Gotchas

This converter only supports very basic stylus features. See the example folder to see what we've tested it on. It is intended for use with design artefacts like Zeplin style guides as a basis for using inline styles with React.

Keywords

stylus

FAQs

Package last updated on 28 Sep 2016

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.