HyURL Utilities
Utility functions of HyURL collection.
This package currently contains the following functions, more functions may be
included in the future. Each function is stored in a separated file.
Import
There are two ways to import these functions.
All At Once
This method will load all functions into memory, even if you don't need some of
them.
import * as utils from "@hyurl/utils";
import { count, ensureType } from "@hyurl/utils";
Only Needed
This method will only load needed functions, which is recommended.
import count from "@hyurl/utils/count";
import ensureType from "@hyurl/utils/ensureType";
Utilities Types
Other than utility functions, this package also provides some utility types for
TypeScript, they are located in the following file and exposed to the global
namespace.