ucum.js
JavaScript library for unitsofmeasure.org (UCUM)
File Explorer
- example.html
- ucum.js
- equivalents.json
- metrics.json
- prefixes.json
- tests.json
- ucum-parser.js
- ucum-parser.peg
- codegen.js
- entry.js
- helpers.js
- ucum-parser.peg.template
- mocha.opts
- ucum.js
- ucum-essence.xml
- ucum-functional-tests.xml
- .gitignore
- Makefile
- package.json
- README.md
- ucum.js
# Use via CDN
jsDelivrjsDelivr serves any public GitHub repository as a CDN with zero setup. Pick a version and a file to get a ready-to-paste link and snippet.
Command Glossary
Commands referenced in this DOCs, explained below.
git clone
View Details ▼
git clone
Clone an existing repository.
git clone {{remote_repository_location}} {{path/to/directory}}
Clone an existing repository into a new directory (the default directory is the repository name):
git clone --recursive {{remote_repository_location}}
Clone an existing repository and its submodules:
git clone {{[-n|--no-checkout]}} {{remote_repository_location}}
Clone only the `.git` directory of an existing repository:
npm install
View Details ▼
npm install
Install Node packages.
npm {{[i|install]}}
Install dependencies listed in `package.json`:
npm {{[i|install]}} {{package_name}}@{{version}}
Download a specific version of a package and add it to the list of dependencies in `package.json`:
npm {{[i|install]}} {{package_name}} {{[-D|--save-dev]}}
Download the latest version of a package and add it to the list of dev dependencies in `package.json`:
units
View Details ▼
units
Convert between two units of measure.
units
Run in interactive mode:
search {{string}}
List all units containing a specific string in interactive mode:
units {{quarts}} {{tablespoons}}
Show the conversion between two simple units:
script
View Details ▼
script
Record all terminal output to a typescript file.
script
Record a new session to a file named `typescript` in the current directory:
exit
Stop recording:
script {{path/to/session.out}}
Record a new session to a custom filepath:
