Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
obfuscit
Advanced tools
Readme
Classes Obfuscator for Svelte. Protect your TailwindCSS, Bulma, Bootstrap and more classes from unauthorized copying. Current support includes Svelte, with upcoming features to support Vite, Webpack and Turbopack as well.
[!NOTE]
Some classes likespace-{direction}-{size}
anddivide-{direction}-{size}
may not be obfuscated due this time. I'm working on it.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
This project requires NodeJS (version 8 or later) and NPM. Node and NPM are really easy to install. To make sure you have them available on your machine, try running the following command.
$ npm -v && node -v
6.4.1
v8.16.0
BEFORE YOU INSTALL: please read the prerequisites
To install and set up the library, run:
$ npm install -D obfuscit
Or if you prefer using Yarn:
$ yarn add --dev obfuscit
Or if you prefer using PNPM:
$ pnpm add -D obfuscit
import { sveltekit } from '@sveltejs/kit/vite';
import { defineConfig } from 'vite';
import Obfuscit from 'obfuscit';
export default defineConfig({
plugins: [
sveltekit({}),
Obfuscit({
length: 4,
prefix: 'obf-',
suffix: '-test'
})
]
});
build
commandUpdate your package.json
to include the twobfus
command in the build
script.
{
"scripts": {
"build": "obfus --clean && <your-build-command>"
}
}
$ npx obfus --clean
clean
- Clean old obfuscated class mappings
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
git checkout -b my-new-feature
git add .
git commit -am 'Add some feature'
git push origin my-new-feature
See also the list of contributors who participated in this project.
MIT License © waffpi
FAQs
Plugin for Vite that helps you protect your stylesheet code by obfuscating TailwindCSS, Bulma, Bootstrap and more
The npm package obfuscit receives a total of 5 weekly downloads. As such, obfuscit popularity was classified as not popular.
We found that obfuscit demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.