@medv/finder
Advanced tools
Comparing version 1.1.3 to 2.0.0
{ | ||
"name": "@medv/finder", | ||
"version": "1.1.3", | ||
"version": "2.0.0", | ||
"description": "CSS Selector Generator", | ||
"main": "dist/index.js", | ||
"types": "dist/index.d.ts", | ||
"repository": "antonmedv/finder", | ||
"homepage": "https://github.com/antonmedv/finder", | ||
"author": "Anton Medvedev <anton@medv.io>", | ||
"license": "MIT", | ||
"keywords": [ | ||
"css", | ||
"selector", | ||
"generator" | ||
], | ||
"main": "finder.js", | ||
"types": "finder.d.ts", | ||
"files": [ | ||
"dist" | ||
"*.ts", | ||
"*.js" | ||
], | ||
@@ -14,33 +24,20 @@ "scripts": { | ||
"prepare": "tsc", | ||
"release": "release-it --access public" | ||
"release": "release-it --access public", | ||
"size": "minify finder.js --sourceType module | gzip-size" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/antonmedv/finder.git" | ||
}, | ||
"keywords": [ | ||
"css", | ||
"selector", | ||
"generator" | ||
], | ||
"author": "Anton Medvedev <anton@medv.io>", | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/antonmedv/finder/issues" | ||
}, | ||
"homepage": "https://github.com/antonmedv/finder#readme", | ||
"devDependencies": { | ||
"ava": "^0.25.0", | ||
"browser-env": "^3.2.5", | ||
"release-it": "^7.6.1", | ||
"typescript": "3.0.1" | ||
"ava": "^3.8.2", | ||
"browser-env": "^3.3.0", | ||
"esm": "^3.2.25", | ||
"gzip-size-cli": "*", | ||
"babel-minify": "*", | ||
"release-it": "^13.6.1", | ||
"typescript": "3.9.3" | ||
}, | ||
"ava": { | ||
"require": [ | ||
"esm", | ||
"./test/helpers/setup-browser-env.js" | ||
] | ||
}, | ||
"dependencies": { | ||
"cssesc": "^2.0.0" | ||
} | ||
} |
@@ -1,6 +0,8 @@ | ||
![finder](https://user-images.githubusercontent.com/141232/36463709-381f8c36-16fe-11e8-8fdc-fcbdd4f2a36c.png) | ||
![finder](https://medv.io/assets/finder.png) | ||
# finder | ||
[![Build Status](https://travis-ci.org/antonmedv/finder.svg?branch=master)](https://travis-ci.org/antonmedv/finder) | ||
[![npm](https://img.shields.io/npm/v/@medv/finder?color=grightgreen)](https://www.npmjs.com/package/@medv/finder) | ||
[![Build status](https://img.shields.io/travis/antonmedv/finder)](https://travis-ci.org/antonmedv/finder) | ||
[![npm bundle size](https://img.shields.io/bundlephobia/minzip/@medv/finder?label=size)](https://bundlephobia.com/result?p=@medv/finder) | ||
@@ -14,3 +16,3 @@ > CSS Selector Generator | ||
* Stable and **robust** selectors | ||
* **2.9 kB** gzip and minify size | ||
* **2.1 kB** gzip and minify size | ||
@@ -23,6 +25,14 @@ ## Install | ||
Finder can be used via modules: | ||
```html | ||
<script type="module"> | ||
import {finder} from 'https://medv.io/finder/finder.js' | ||
</script> | ||
``` | ||
## Usage | ||
```js | ||
import finder from '@medv/finder' | ||
import {finder} from '@medv/finder' | ||
@@ -112,2 +122,3 @@ document.addEventListener('click', event => { | ||
#### `maxNumberOfTries: number` | ||
Max number of tries when we do the optimization. It is a trade-off between optimization and efficiency. | ||
@@ -124,2 +135,2 @@ Default `10_000` is good enough in most cases. | ||
MIT | ||
[MIT](LICENSE) |
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
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
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
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
26995
0
701
133
7
1
1
1
- Removedcssesc@^2.0.0
- Removedcssesc@2.0.0(transitive)