Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
travix-ui-kit
Advanced tools
Travix UI Components' repository.
Take a look at: https://travix-ui-kit.netlify.com/
npm i react travix-ui-kit -S
install as a dependencyThe UI Kit comes with a CLI tool to help you build your UI bundles (JS and CSS).
To see the options available:
$ node_modules/.bin/travix-ui-kit -h
Usage: travix-ui-kit [options]
Options:
-h, --help output usage information
-V, --version output the version number
-c, --css-dir <directory> Destination directory of the ui-kit.css
-e, --environment <environment> Environment in which to run the build
-j, --js-dir <directory> Destination directory of the ui-kit.js
-t, --theme-file <path> Path to a theme file to override default UI Kit styles
-w, --watch Enables file-watcher functionality
For example, if we want to generate our UI Bundles, with the default styling, on ./js/
and ./css/
folders,
we do:
$ node_modules/.bin/travix-ui-kit -j ./js/ -c ./css/
If we want to pass our own YAML file for styling, we also can do it:
$ node_modules/.bin/travix-ui-kit -j ./js/ -c ./css/ -t ./myDefaultStyle.yml
And for development purposes, we tend to want to watch for changes on the files. That's possible too:
$ node_modules/.bin/travix-ui-kit -j ./js/ -c ./css/ -t ./myDefaultStyle.yml -w
For simplicity purposes we suggest to add a task/script to your package.json
,
which simplifies the usage of the CLI. E.g.:
{
"scripts": {
"build:ui": "travix-ui-kit -j ./js/ -c ./css/ -t ./myDefaultStyle.yml",
"build:ui-watch": "travix-ui-kit -j ./js/ -c ./css/ -t ./myDefaultStyle.yml -w",
}
}
const Button = require('travix-ui-kit').Button;
// or
import { Button } from 'travix-ui-kit';
function renderSomething({onAdd}) {
return (
<Button size="s" onClick={onAdd}>Add value</Button>
);
}
use file node_modules/travix-ui-kit/dist/ui-bundle.css
<link>
Warning: Directly using file components/index.scss
not recommended. We're not promising that we will use SCSS in future or will keep file's structure
THEME_PATH=/some/path/to/theme.yaml npm run build
git clone
this reponpm ci
to install dependenciesnpm run build
to build theme, styles and javascriptnpm run styleguide:build
to build web service with living style guidenpm run styleguide:server
to run web service with living style guidenpm run build:watch
to build the themes, styles and javascript on each file changenpm run build:watch -- -t "./path/to/my/theme.yml"
to build using a custom theme (also can use the other options as well).npm run styleguide:server
to run web service with livingstyle guide and review changesnpm run styleguide:dev
to run both styguide:build
and styleguide:server
npm test
to run unit testnpm run update-snapshots
to update current unit test snapshotsnpm run lint
to check ES-lint errors.js
, .scss
and .md
filesFAQs
Travix UI kit
The npm package travix-ui-kit receives a total of 98 weekly downloads. As such, travix-ui-kit popularity was classified as not popular.
We found that travix-ui-kit demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 7 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.