@bgrins/test-tinycolor-esm
Advanced tools
Comparing version 0.0.3 to 0.0.4
{ | ||
"module": "./esm/mod.js", | ||
"main": "./script/mod.js", | ||
"name": "@bgrins/test-tinycolor-esm", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "Fast Color Parsing and Manipulation", | ||
@@ -22,16 +20,13 @@ "author": "Brian Grinstead <briangrinstead@gmail.com> (http://briangrinstead.com)", | ||
], | ||
"module": "./mod.js", | ||
"main": "./tinycolor.js", | ||
"exports": { | ||
".": { | ||
"import": "./esm/mod.js", | ||
"require": "./script/mod.js" | ||
"import": "./mod.js", | ||
"require": "./tinycolor.js" | ||
} | ||
}, | ||
"scripts": { | ||
"test": "node test_runner.js" | ||
}, | ||
"devDependencies": { | ||
"@types/node": "^18.11.9", | ||
"chalk": "^4.1.2", | ||
"@deno/shim-deno": "~0.11.0" | ||
"@deno/shim-deno-test": "^0.4.0" | ||
} | ||
} | ||
} |
@@ -11,4 +11,6 @@ # TinyColor | ||
Download [tinycolor.js](https://raw.githubusercontent.com/bgrins/TinyColor/master/dist/). | ||
Download [tinycolor.js](https://raw.githubusercontent.com/bgrins/TinyColor/master/tinycolor.js) or install it with bower: | ||
bower install tinycolor | ||
Then just include it in the page in a `script` tag: | ||
@@ -21,11 +23,2 @@ ```html | ||
``` | ||
Or using ESM with: | ||
```html | ||
<script type="module"> | ||
import tinycolor from "https://esm.sh/tinycolor2"; | ||
var color = tinycolor("red"); | ||
</script> | ||
``` | ||
## Including in node | ||
@@ -32,0 +25,0 @@ |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
233982
1
14
6226
470
2