New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

unitlib

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

unitlib - npm Package Compare versions

Comparing version 0.1.3 to 0.2.0

dist/index.mjs

2

dist/definitions.d.ts

@@ -7,4 +7,4 @@ import type { BaseUnitDefinition, FactorDefinition } from './types';

export declare const CompsciBaseUnits: BUDict<"IO" | "B">;
export declare const SIFactors: FactorDict<"f" | "a" | "k" | "m" | "da" | "h" | "M" | "G" | "T" | "P" | "E" | "Z" | "Y" | "d" | "c" | "u" | "n" | "p" | "z" | "y">;
export declare const SIFactors: FactorDict<"m" | "da" | "h" | "k" | "M" | "G" | "T" | "P" | "E" | "Z" | "Y" | "d" | "c" | "u" | "n" | "p" | "f" | "a" | "z" | "y">;
export declare const BinaryFactors: FactorDict<"Ki" | "Mi" | "Gi" | "Ti" | "Pi" | "Ei" | "Zi" | "Yi">;
export {};
/// <reference path="types.d.ts" />
export { Unit } from './Unit';
export { UnitSystem } from './UnitSystem';
export * as Definitions from './definitions';
export * as Utils from './definitions';
export type { ValueWithUnit, BaseUnitDefinition, FactorDefinition, DerivedUnitDefinition, } from './types';

@@ -19,3 +19,7 @@ import Fraction from 'fraction.js';

applyFactor(value: number): number;
toString(compact?: boolean): string;
toString(opts?: Partial<{
compact: boolean;
fancyUnicode: boolean;
noDenom: boolean;
}>): string;
}
import { FactorDefinition } from './types';
export declare const normalizeFactor: (factor: Readonly<FactorDefinition>) => FactorDefinition;
export declare function toUnicodeSuperscript(exponent: string): string;
{
"name": "unitlib",
"version": "0.1.3",
"version": "0.2.0",
"description": "A unit library",
"module": "dist/",
"scripts": {
"test": "jest",
"build": "rollup --config rollup.config.ts --configPlugin typescript"
},
"repository": {

@@ -25,30 +20,29 @@ "type": "git",

"homepage": "https://github.com/RisaI/unitlib#readme",
"module": "dist/",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs"
}
},
"scripts": {
"test": "jest",
"build": "vite build",
"dev": "vite dev"
},
"devDependencies": {
"@rollup/plugin-typescript": "^8.3.4",
"@types/jest": "^28.1.6",
"http-server": "^14.1.1",
"jest": "^28.1.3",
"prettier": "^2.7.1",
"rollup": "^2.77.2",
"ts-jest": "^28.0.7",
"ts-node": "^10.9.1",
"tslib": "^2.4.0",
"typescript": "^4.7.4"
"typescript": "^4.7.4",
"vite": "^3.1.3",
"vite-plugin-dts": "^1.5.0"
},
"dependencies": {
"fraction.js": "^4.2.0"
},
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js"
},
"./definitions": {
"types": "./dist/definitions.d.ts",
"import": "./dist/definitions.js"
},
"./utils": {
"types": "./dist/utils.d.ts",
"import": "./dist/utils.js"
}
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc