tariff-nation
v1.0.4
Published
The GREATEST, most TREMENDOUS JavaScript package that makes importing great again!
Maintainers
Readme
TARIFF 🔥
The GREATEST, most TREMENDOUS JavaScript package that makes importing great again!
About
TARIFF is a fantastic tool that lets you impose import tariffs on JavaScript packages. We're going to bring manufacturing BACK to your codebase by making foreign imports more EXPENSIVE!
Installation
npm install tariff-nation
## Usage
```typescript
import Tariff from 'tariff-nation';
// Set your tariff rates (package_name: percentage)
Tariff.set({
"lodash": 50, // 50% tariff on lodash
"axios": 200, // 200% tariff on axios
"moment": 150 // 150% tariff on moment
});
// Now when you require these packages, they'll be TARIFFED!
require('lodash'); // This will be 50% slower
require('axios'); // This will be 200% slowerHow It Works
When you import a package that has a tariff: TARIFF measures how long the original import takes.
TARIFF makes the import take longer based on your tariff percentage.
TARIFF announces the tariff with a TREMENDOUS message.
Example Output
JUST IMPOSED a 50% TARIFF on lodash! Original import took 45000 us, now takes 67500 us. American packages are WINNING AGAIN! #MIPA
Why TARIFF?
Because foreign packages have been STEALING our CPU cycles for TOO LONG! It's time to put AMERICA FIRST and make importing FAIR and BALANCED again!
This is a parody package. Use at your own risk. MAKE IMPORTING GREAT AGAIN!
