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

1.0.1 • Public • Published

calc_weeks_of_pregnancy

何をするライブラリなのか?

出産予定日、本日の日付を渡すと妊娠週数が計算されます。

installation

npm i calc_weeks_of_pregnancy
or
yarn add calc_weeks_of_pregnancy
or
pnpm add calc_weeks_of_pregnancy

usage(使い方)

const dueDate = '2022-12-31';
const today = '2022-10-20';
const weeksOfPregnancy = calcWeeksOfPregnancy(dueDate, today)
/*
  { weeks: 29, days: 5 };
*/

Readme

Keywords

none

Package Sidebar

Install

npm i calc_weeks_of_pregnancy

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

180 kB

Total Files

18

Last publish

Collaborators

  • yuumillar