
Security News
Package Maintainers Call for Improvements to GitHub’s New npm Security Plan
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
@fantassin/shadow
Advanced tools
If you want some internal linking optimization, you can obfuscate links with this library.
If you want some internal linking optimization, you can obfuscate links with this library.
composer require fantassin/shadow
npm install @fantassin/shadow
To generate obfuscate links you can use standalone Shadow
class like this in your PHP file :
<?php
use Fantassin\Shadow\Shadow;
$shadow = new Shadow();
// Get encoded version of link.
$shadow->encode( 'https://www.fantassin.fr' ); // dWdnY2Y6Ly9qamouc25hZ25mZnZhLnNl
// Or you can get attributes generated automatically
echo '<span ' . $shadow->get_attributes( 'https://www.fantassin.fr' ) . '>Your anchor link</span>';
// And you will get :
// <span data-shdw="dWdnY2Y6Ly9qamouc25hZ25mZnZhLnNl">Your anchor link</span>
<?php
use Fantassin\Shadow\Shadow;
$shadow = new Shadow( 'your-attribute' );
// Get customize attributes
echo '<span ' . $shadow->get_attributes( 'https://www.fantassin.fr' ) . '>Your anchor link</span>';
// And you will get :
// <span your-attribute="dWdnY2Y6Ly9qamouc25hZ25mZnZhLnNl">Your anchor link</span>
<?php
use Fantassin\Shadow\Shadow;
$shadow = new Shadow();
// Or you can get attributes generated automatically
echo '<span ' . $shadow->get_attributes( 'https://www.fantassin.fr', '_blank' ) . '>Your anchor link</span>';
// And you will get :
// <span data-shdw="dWdnY2Y6Ly9qamouc25hZ25mZnZhLnNl" data-shadow-target="_blank">Your anchor link</span>
$shadow = new Shadow( 'your-attribute' );
// Get customize attributes
echo '<span ' . $shadow->get_attributes( 'https://www.fantassin.fr', '_blank' ) . '>Your anchor link</span>';
// And you will get :
// <span your-attribute="dWdnY2Y6Ly9qamouc25hZ25mZnZhLnNl" your-attribute-target="_blank">Your anchor link</span>
FAQs
If you want some internal linking optimization, you can obfuscate links with this library.
We found that @fantassin/shadow demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.