2.1.1 • Published 4 years ago
styleinjection v2.1.1
Installation
npm i -g styleinjection
Usage
styleinjection [path] [options]
stylin
can be used as a shorthand forstyleinjection
.- All arguments to the command are optional.
- Running the command without a path will prompt to choose a file from the current directory.
- A path can be an absolute path (
C:/folder/file
), or a relative path (folder/file
). - Backslashes (
\
) can also be used in a path. - The result will be copied to the clipboard if the
--save
option is not used. - Options can be used without a path.
- The available options are:
|Name|Shorthand|Description|
|-|-|-|
|
--save
|-s
|Save the result to a file in the same directory.| |--watch
|-w
|Watch the file for changes.| |--version
|-v
|Print the current version to the console.|
Examples
styleinjection My Style Sheet
stylin Style Sheets/My Style Sheet -s -w
The result can then be pasted into the developer console of a browser.