Comparing version 4.0.0 to 5.0.0
{ | ||
"name": "fake-tag", | ||
"version": "4.0.0", | ||
"version": "5.0.0", | ||
"description": "A fake template literal tag to trick syntax highlighters, linters and formatters into action.", | ||
@@ -30,3 +30,2 @@ "license": "MIT", | ||
"sideEffects": false, | ||
"main": "./fakeTag.mjs", | ||
"exports": { | ||
@@ -38,13 +37,13 @@ ".": "./fakeTag.mjs", | ||
"engines": { | ||
"node": "^12.22.0 || ^14.17.0 || >= 16.0.0" | ||
"node": "^14.17.0 || ^16.0.0 || >= 18.0.0" | ||
}, | ||
"browserslist": "Node 12.22 - 13 and Node < 13, Node 14.17 - 15 and Node < 15, Node >= 16, > 0.5%, not OperaMini all, not IE > 0, not dead", | ||
"browserslist": "Node 14.17 - 15 and Node < 15, Node 16 - 17 and Node < 17, Node >= 18, > 0.5%, not OperaMini all, not dead", | ||
"devDependencies": { | ||
"@types/node": "^17.0.17", | ||
"coverage-node": "^6.0.1", | ||
"eslint": "^8.8.0", | ||
"@types/node": "^18.7.8", | ||
"coverage-node": "^8.0.0", | ||
"eslint": "^8.22.0", | ||
"eslint-plugin-simple-import-sort": "^7.0.0", | ||
"prettier": "^2.5.1", | ||
"test-director": "^8.0.2", | ||
"typescript": "^4.6.0-dev.20220209" | ||
"prettier": "^2.7.1", | ||
"test-director": "^10.0.0", | ||
"typescript": "^4.7.4" | ||
}, | ||
@@ -51,0 +50,0 @@ "scripts": { |
# fake-tag | ||
[![npm version](https://badgen.net/npm/v/fake-tag)](https://npm.im/fake-tag) [![CI status](https://github.com/jaydenseric/fake-tag/workflows/CI/badge.svg)](https://github.com/jaydenseric/fake-tag/actions) | ||
A fake template literal tag to trick syntax highlighters, linters and formatters into action. Interpolations and escapes are tested. | ||
@@ -9,3 +7,3 @@ | ||
To install with [npm](https://npmjs.com/get-npm), run: | ||
For [Node.js](https://nodejs.org), to install [`fake-tag`](https://npm.im/fake-tag) with [npm](https://npmjs.com/get-npm), run: | ||
@@ -16,2 +14,14 @@ ```sh | ||
For [Deno](https://deno.land) and browsers, an example import map: | ||
```json | ||
{ | ||
"imports": { | ||
"fake-tag": "https://unpkg.com/fake-tag@5.0.0/fakeTag.mjs" | ||
} | ||
} | ||
``` | ||
Then, import and use the template literal tag [`fakeTag`](./fakeTag.mjs). | ||
## Examples | ||
@@ -33,5 +43,19 @@ | ||
## Requirements | ||
Supported runtime environments: | ||
- [Node.js](https://nodejs.org) versions `^14.17.0 || ^16.0.0 || >= 18.0.0`. | ||
- [Deno](https://deno.land). | ||
- Browsers matching the [Browserslist](https://browsersl.ist) query [`> 0.5%, not OperaMini all, not dead`](https://browsersl.ist/?q=%3E+0.5%25%2C+not+OperaMini+all%2C+not+dead). | ||
Non [Deno](https://deno.land) projects must configure [TypeScript](https://typescriptlang.org) to use types from the ECMAScript modules that have a `// @ts-check` comment: | ||
- [`compilerOptions.allowJs`](https://typescriptlang.org/tsconfig#allowJs) should be `true`. | ||
- [`compilerOptions.maxNodeModuleJsDepth`](https://typescriptlang.org/tsconfig#maxNodeModuleJsDepth) should be reasonably large, e.g. `10`. | ||
- [`compilerOptions.module`](https://typescriptlang.org/tsconfig#module) should be `"node16"` or `"nodenext"`. | ||
## Exports | ||
These ECMAScript modules are published to [npm](https://npmjs.com) and exported via the [`package.json`](./package.json) `exports` field: | ||
The [npm](https://npmjs.com) package [`fake-tag`](https://npm.im/fake-tag) features [optimal JavaScript module design](https://jaydenseric.com/blog/optimal-javascript-module-design). These ECMAScript modules are exported via the [`package.json`](./package.json) field [`exports`](https://nodejs.org/api/packages.html#exports): | ||
@@ -38,0 +62,0 @@ - [`fakeTag.mjs`](./fakeTag.mjs) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6518
107