PHP 8.2.30
Preview: index.js Size: 504 B
/home/byroehnu/.trash/node_modules11/unicode-match-property-value-ecmascript/index.js

'use strict';

const propertyToValueAliases = require('./data/mappings.js');

const matchPropertyValue = function(property, value) {
	const aliasToValue = propertyToValueAliases.get(property);
	if (!aliasToValue) {
		throw new Error(`Unknown property \`${ property }\`.`);
	}
	const canonicalValue = aliasToValue.get(value);
	if (canonicalValue) {
		return canonicalValue;
	}
	throw new Error(
		`Unknown value \`${ value }\` for property \`${ property }\`.`
	);
};

module.exports = matchPropertyValue;

Directory Contents

Dirs: 1 × Files: 4

Name Size Perms Modified Actions
data DIR
- drwxr-xr-x 2026-02-28 00:26:42
Edit Download
504 B lrw-r--r-- 2026-02-28 00:26:32
Edit Download
1.05 KB lrw-r--r-- 2026-02-28 00:27:18
Edit Download
1.10 KB lrw-r--r-- 2026-02-28 00:26:56
Edit Download
2.63 KB lrw-r--r-- 2026-02-28 00:27:06
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).