{"id":44666361,"url":"https://github.com/armancodv/unit-converter-pro","last_synced_at":"2026-02-15T00:35:01.636Z","repository":{"id":57386413,"uuid":"215583527","full_name":"armancodv/unit-converter-pro","owner":"armancodv","description":null,"archived":false,"fork":false,"pushed_at":"2019-10-16T15:49:40.000Z","size":15,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-20T17:50:05.580Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/armancodv.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-10-16T15:34:17.000Z","updated_at":"2023-06-22T20:18:55.000Z","dependencies_parsed_at":"2022-09-05T03:21:07.686Z","dependency_job_id":null,"html_url":"https://github.com/armancodv/unit-converter-pro","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/armancodv/unit-converter-pro","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/armancodv%2Funit-converter-pro","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/armancodv%2Funit-converter-pro/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/armancodv%2Funit-converter-pro/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/armancodv%2Funit-converter-pro/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/armancodv","download_url":"https://codeload.github.com/armancodv/unit-converter-pro/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/armancodv%2Funit-converter-pro/sbom","scorecard":{"id":207472,"data":{"date":"2025-08-11","repo":{"name":"github.com/armancodv/unit-converter-pro","commit":"2eb1b8161e06c77d63e1b5a8db19219b5d1430d6"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Code-Review","score":0,"reason":"Found 0/4 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-17T00:05:52.096Z","repository_id":57386413,"created_at":"2025-08-17T00:05:52.096Z","updated_at":"2025-08-17T00:05:52.096Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29461912,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-14T22:42:09.113Z","status":"ssl_error","status_checked_at":"2026-02-14T22:42:05.053Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-02-15T00:35:00.995Z","updated_at":"2026-02-15T00:35:01.629Z","avatar_url":"https://github.com/armancodv.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Unit Converter\nIt is a npm package for converting units, including: Angle, Area, Bits, Density, ElectricCurrent, Energy, Force, Length, Mass, Power, Pressure, Speed, Temperature, Time, and Volume.\n\n## Install\n```\nnpm install unit-converter-pro\n```\n\n## How to use\n### Import\nThis line of code should be added at the begin of the code.\n```js\nconst Convert = require('unit-converter-pro');\n```\n\n---\n\n### Angle\nThe following code converts angle in radian to degree:\n```js\nangle = new Convert.Angle();\nconsole.log(angle.radian(Math.PI).degree());\n```\n\nThe first one (in this case `radian`) is the input which recieve the value, and the second one (in this case `degree`) is the output.\n\nThe following units can be replaced to `radian` and `degree` in above.\n| Angle Unit |\n| --- |\n| arcminute |\n| arcsecond |\n| circle |\n| degree |\n| gon |\n| grad |\n| milNato |\n| milSovietUnion |\n| milSweden |\n| octant |\n| quadrant |\n| radian |\n| revolution |\n| sextant |\n| sign |\n| turn |\n\n---\n\n### Area\n```js\narea = new Convert.Area();\nconsole.log(area.squareMeters(1).squareInches());\n```\n\n| Area Unit |\n| --- |\n| acres |\n| ares |\n| circularInches |\n| hectares |\n| hides |\n| roods |\n| squareCentimeters |\n| squareFeetUSUK |\n| squareFeetUSSurvey |\n| squareInches |\n| squareKilometers |\n| squareMeters |\n| squareMiles |\n| squareMillimeters |\n| squaresOfTimber |\n| squareRodsOrPoles |\n| squareYards |\n| townships |\n\n---\n\n### Bits\n```js\nbits = new Convert.Bits();\nconsole.log(bits.kilobytes(20).bits());\n```\n\n| Bits Unit |\n| --- |\n| bits |\n| bytes |\n| kilobits |\n| kilobytes |\n| megabits |\n| megabytes |\n| gigabits |\n| gigabytes |\n| terabits |\n| terabytes |\n| petabits |\n| petabytes |\n| exabits |\n| exabytes |\n\n---\n\n### Density\n```js\ndensity = new Convert.Density();\nconsole.log(density.kilogramsCubicMeters(1).poundsCubicInch());\n```\n\n| Density Unit |\n| --- |\n| grainsGallonUK |\n| grainsGallonUS |\n| gramsCubicCentimeters |\n| gramsLiter |\n| gramsMilliliters |\n| kilogramsCubicMeters |\n| kilogramsLiter |\n| megagramsCubicMeter |\n| milligramsMilliliter |\n| milligramsLiter |\n| ouncesCubicInch |\n| ouncesGallonUK |\n| ouncesGallonUS |\n| poundsCubicInch |\n| poundsCubicFoot |\n| poundsGallonUK |\n| poundsGallonUS |\n| slugsCubicFoot |\n| tonnesCubicMeter |\n| tonsUKCubicYard |\n| tonsUSCubicYard |\n\n---\n\n### ElectricCurrent\n```js\nelectricCurrent = new Convert.ElectricCurrent();\nconsole.log(electricCurrent.ampere(1).gilbert());\n```\n\n| Current Unit |\n| --- |\n| abampere |\n| ampere |\n| biot |\n| centiampere |\n| coulombSecond |\n| EMUOfCurrent |\n| ESUOfCurrent |\n| franklinSecond |\n| gaussianElectricCurrent |\n| gigaampere |\n| gilbert |\n| kiloampere |\n| megaampere |\n| microampere |\n| milliampere |\n| milliamp |\n| nanoampere |\n| picoampere |\n| siemensVolt |\n| statampere |\n| teraampere |\n| voltOhm |\n| wattVolt |\n| weberHenry |\n\n---\n\n### Energy\n```js\nenergy = new Convert.Energy();\nconsole.log(energy.joules(100).wattHours());\n```\n\n| Energy Unit |\n| --- |\n| btuTh |\n| btuMean |\n| caloriesIT |\n| caloriesTh |\n| caloriesMean |\n| calories15C |\n| calories20C |\n| caloriesFood |\n| centigradeHeatUnits |\n| dutchNaturalGas |\n| electronVolts |\n| ergs |\n| footPoundForce |\n| footPoundals |\n| gasolineL |\n| gigajoules |\n| horsepowerHours |\n| inchPoundForce |\n| joules |\n| kilocaloriesIT |\n| kilocaloriesTh |\n| kilogramForceMeters |\n| kilojoules |\n| kilowattHours |\n| megajoules |\n| newtonMeters |\n| petajoules |\n| terajoules |\n| therms |\n| wattSeconds |\n| wattHours |\n\n---\n\n### Force\n```js\nforce = new Convert.Force();\nconsole.log(force.newtons(20).poundsForce());\n```\n\n| Force Unit |\n| --- |\n| dynes |\n| kilogramsForce |\n| kilonewtons |\n| kips |\n| meganewtons |\n| newtons |\n| poundsForce |\n| poundals |\n| sthane |\n| tonnesForce |\n| tonsForceUK |\n| tonsForceUS |\n\n---\n\n### Length\n```js\nlength = new Convert.Length();\nconsole.log(length.inches(1000).lightYears());\n```\n\n| Length Unit |\n| --- |\n| angstroms |\n| astronomicalUnits |\n| barleycorns |\n| cables |\n| centimeters |\n| chainsSurveyors |\n| decimeters |\n| ellsUK |\n| emsPica |\n| fathoms |\n| feetUKUS |\n| feetUSSurvey |\n| furlongs |\n| hands |\n| hectometers |\n| inches |\n| kilometers |\n| lightYears |\n| meters |\n| micrometers |\n| mil |\n| milesUKUS |\n| milesNauticalInternational |\n| milesNauticalUK |\n| millimeters |\n| nanometers |\n| parsecs |\n| picometers |\n| scandinavianMile |\n| thou |\n| yards |\n\n---\n\n### Mass\n```js\nmass = new Convert.Mass();\nconsole.log(mass.grams(200).poundsUSUK());\n```\n\n| Mass Unit |\n| --- |\n| caratsMetric |\n| cental |\n| decagrams |\n| earthMasses |\n| femtograms |\n| grains |\n| grams |\n| hectograms |\n| hundredweights |\n| kilograms |\n| kilotonnes |\n| megatonnes |\n| micrograms |\n| milligrams |\n| nanograms |\n| ouncesUSUK |\n| ouncesTroyPreciousMetals |\n| picograms |\n| poundsUSUK |\n| poundsTroyPreciousMetals |\n| SolarMasses |\n| slugsGPounds |\n| stones |\n| tonsUKLong |\n| tonsUSShort |\n| tonnesMetric |\n\n---\n\n### Power\n```js\npower = new Convert.Power();\nconsole.log(power.watts(20).horsepowersInternational());\n```\n\n| Power Unit |\n| --- |\n| BtuHour |\n| BtuMinute |\n| BtuSecond |\n| caloriesThHour |\n| caloriesThMinute |\n| caloriesThSecond |\n| footPoundsForceMinute |\n| footPoundsForceSecond |\n| gigawatts |\n| horsepowersElectric |\n| horsepowersInternational |\n| horsepowersWater |\n| horsepowersMetric |\n| watts |\n| joulesHour |\n| joulesMinute |\n| joulesSecond |\n| kilocaloriesThHour |\n| kilocaloriesThMinute |\n| kilogramForceMetersHour |\n| kilogramForceMetersMinute |\n| kilowatts |\n| megawatts |\n| terawatts |\n| tonOfRefrigeration |\n| petawatts |\n\n---\n\n### Pressure\n```js\npressure = new Convert.Pressure();\nconsole.log(pressure.pascals(20).millimetersOfMercury());\n```\n\n| Pressure Unit |\n| --- |\n| atmospheres |\n| bars |\n| centimetersMercury |\n| centimetersWater |\n| feetOfWater |\n| hectopascals |\n| inchesOfWater |\n| inchesOfMercury |\n| kilogramForcesSqCentimeter |\n| kilogramForcesSqMeter |\n| kilonewtonsSqMeter |\n| kilonewtonsSqMillimeter |\n| kilopascals |\n| kipsSqInch |\n| meganewtonsSqMeter |\n| meganewtonsSqMillimeter |\n| megapascals |\n| metersOfWater |\n| millibars |\n| millimetersOfMercury |\n| millimetersOfWater |\n| newtonsSqCentimeter |\n| newtonsSqMeter |\n| newtonsSqMillimeter |\n| pascals |\n| poundsForceSqFoot |\n| poundsForceSqInch |\n| poundalsSqFoot |\n| tonsUKForceSqFoot |\n| tonsUKForceSqInch |\n| tonsUSForceSqFoot |\n| tonsUSForceSqInch |\n| tonnesForceSqCm |\n| tonnesForceSqMeter |\n| torr |\n\n---\n\n### Speed\n```js\nspeed = new Convert.Speed();\nconsole.log(speed.metersSecond(20).milesHour());\n```\n\n| Speed Unit |\n| --- |\n| centimetersMinute |\n| centimetersSecond |\n| feetHour |\n| feetMinute |\n| feetSecond |\n| inchesMinute |\n| inchesSecond |\n| kilometersHour |\n| kilometersSecond |\n| knots |\n| machNumber |\n| metersHour |\n| metersMinute |\n| metersSecond |\n| milesHour |\n| milesMinute |\n| milesSecond |\n| nauticalMilesHour |\n| mm24Hr |\n| speedOfLight |\n| speedOfSound |\n| yardsHour |\n| yardsMinute |\n| yardsSecond |\n\n---\n\n### Temperature\n```js\ntemperature = new Convert.Temperature();\nconsole.log(temperature.celsius(20).fahrenheit());\n```\n\n| Temperature Unit |\n| --- |\n| celsius |\n| kelvin |\n| fahrenheit |\n| rankine |\n| reaumur |\n\n---\n\n### Time\n```js\ntime = new Convert.Time();\nconsole.log(time.weeks(20).hours());\n```\n\n| Time Unit |\n| --- |\n| centuries |\n| days |\n| decades |\n| femtoseconds |\n| fortnights |\n| hours |\n| microseconds |\n| millenia |\n| milliseconds |\n| minutes |\n| monthsCommon |\n| monthsSynodic |\n| nanoseconds |\n| picoseconds |\n| quartersCommon |\n| seconds |\n| shakes |\n| weeks |\n| yearsCommon |\n| yearsAverageGregorian |\n| yearsJulian |\n| yearsLeap |\n| yearsTropical |\n\n---\n\n### Volume\n```js\nvolume = new Convert.Volume();\nconsole.log(volume.cubicInches(20).cubicCentimeters());\n```\n\n| Volume Unit |\n| --- |\n| acreFoot |\n| barrelsOil |\n| bushelsUK |\n| bushelsUS |\n| centiliters |\n| cubicCentimeters |\n| cubicDecimeters |\n| cubicDecameters |\n| cubicFeet |\n| cubicInches |\n| cubicKilometers |\n| cubicMeters |\n| cubicMile |\n| cubicMillimeters |\n| cubicYards |\n| cups |\n| deciliters |\n| dramImperial |\n| dramUS |\n| fluidOuncesImperial |\n| fluidOuncesUS |\n| gallonsImperial |\n| gallonsDryUS |\n| gallonsLiquidUS |\n| gillImperial |\n| gillUS |\n| kiloliters |\n| liters |\n| liters1901to1964 |\n| milliliters |\n| microliters |\n| nanoliters |\n| picoliters |\n| pintsImperial |\n| pintsDryUS |\n| pintsLiquidUS |\n| quartsImperial |\n| quartsDryUS |\n| quartsLiquidUS |\n| tableSpoons |\n| teaSpoons |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farmancodv%2Funit-converter-pro","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farmancodv%2Funit-converter-pro","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farmancodv%2Funit-converter-pro/lists"}