Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
@sketchmine/sketch-color-replacer
Advanced tools
Replaces a set of colors with a given set of colors
The sketch-color-replacer is a CLI tool for replacing a set of legacy colors with new colors. We had the need @Dynatrace to replace over 80 colors, over multiple files with the new brand colors.
The color-replacer needs a ./colors-json
file provided with the colors that need to be replaced and of course a .sketch file where the replacement should be applied.
The colors.json file follows following convention:
{
"legacycolor": "newcolor",
"#AJ54K0": "#333333",
...
}
Installing the package can be performed with yarn or npm. yarn add @sketchmine/sketch-color-replacer
will add the executable and the typings to your node_modules folder.
To execute the colors replacer you can go ahead with the .bin like npx skm-color-replacer --colors /path/to/colors.json --file /path/to/file.sketch
.
If you find a bug or a missing feature, please let us know your solution so that we can document it
For building the package Rollup.js is used as a module bundler. The configuration can be found in the rollup.config.js
and is orchestrated by the yarn package manager.
The package bundle is in the commonjs format and meant to be consumed only be node.js applications.
The build can be started with the following two commands:
yarn build
for building the package.yarn dev
for building and watching the sources of the package. (rebuilds after safe)The source code of this package is going to be linted by our CI environment. To ensure a coding standard and quality use the configured linter tslint. This package extends from the tslint-config-airbnb
and the linting configuration extends from the root tslint.json
.
run yarn lint
to execute the linter.
Sorry but currently there are no tests specified. 😭 Feel free to add some! 💪🏻
FAQs
Replaces a set of colors with a given set of colors
The npm package @sketchmine/sketch-color-replacer receives a total of 11 weekly downloads. As such, @sketchmine/sketch-color-replacer popularity was classified as not popular.
We found that @sketchmine/sketch-color-replacer demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
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.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.