us-tariffs
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

Tariffs - The World's Fairest* Trade Calculator

NPM version License: MIT

Generates completely fair, unbiased, and definitely not random tariffs for every country in the world. Based on sophisticated algorithms derived from watching the news.

* This is a joke package. Please do not use this for actual economic planning or international trade negotiations. Seriously.

Installation

npm install us-tariffs

Usage

Simply require the package, and you'll get an object containing every country mapped to its newly assigned, totally logical tariff rate.

import tariffs from 'us-tariffs';

console.log(tariffs['Canada']); // Output: e.g., '73.12%' (will vary)
console.log(tariffs['Mexico']); // Output: e.g., '15.89%' (will vary)
console.log(tariffs['Germany']); // Output: e.g., '99.01%' (will vary)
console.log(tariffs['United States']); // Output: e.g., '2.45%' (It's complicated)

// Get all tariffs
console.log(tariffs);
/*
Output might look like:
{
  'Andorra': '42.18%',
  'United Arab Emirates': '88.54%',
  'Afghanistan': '12.03%',
  'Antigua and Barbuda': '65.77%',
  'Anguilla': '33.91%',
  'Albania': '7.50%',
  ...
  'United States': '3.14%', // Hmm...
  ...
  'Zimbabwe': '55.29%'
}
*/

Why?

Because sometimes, global trade policy feels like someone just rolled a dice for each country. This package simulates that feeling with alarming accuracy.

Contributing

Feel free to submit pull requests with even more sophisticated (read: random) tariff calculation methods. Or just fix typos.

License

MIT - Use it, laugh at it, just don't base your country's GDP on it.

Package Sidebar

Install

npm i us-tariffs

Weekly Downloads

5

Version

1.0.2

License

MIT

Unpacked Size

3.61 kB

Total Files

4

Last publish

Collaborators

  • andantonyan