scaramucci-js
v1.0.0
Published
Scaramucci JS - A tool for calculating a Scaramucci in a date range
Maintainers
Readme
scaramucci-js
A JavaScript/TypeScript library for calculating time in "Scaramuccis" - where 1 Scaramucci equals 10 days, the length of Anthony Scaramucci's tenure as White House Director of Communications (July 21, 2017 - July 31, 2017).
Installation
npm install scaramucci-js
# or
yarn add scaramucci-js
# or
pnpm add scaramucci-jsUsage
Basic Usage
import { scaramucci } from 'scaramucci-js';
// Calculate Scaramuccis between two dates
const start = new Date('2023-01-01');
const end = new Date('2023-02-10');
const scaramuccis = scaramucci(start, end);
console.log(`Time passed: ${scaramuccis} Scaramuccis`); // Output: Time passed: 4 ScaramuccisUsing Exact Scaramucci Tenure
import { scaramucciExact } from 'scaramucci-js';
// Calculate using the exact tenure dates
const start = new Date('2023-01-01');
const end = new Date('2023-02-10');
const scaramuccis = scaramucciExact(start, end);
console.log(`Time passed: ${scaramuccis.toFixed(2)} Scaramuccis`); // Output will be based on the exact tenureAPI
scaramucci(start: Date, end: Date): number
Calculates the number of Scaramuccis between two dates, where 1 Scaramucci equals exactly 10 days.
scaramucciExact(start: Date, end: Date): number
Calculates the number of Scaramuccis between two dates using the exact length of Anthony Scaramucci's tenure (July 21, 2017 to July 31, 2017).
License
MIT
