New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@binhbv/finder

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@binhbv/finder

CSS Selector Generator

latest
npmnpm
Version
0.0.1
Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

finder

This project is a clone of @medv/finder with some modifications to make it work CommonJS environments.

Install

npm install @binhbv/finder

Usage

// commonjs
const { finder } = require('@binhbv/finder');

// es6
import { finder } from '@binhbv/finder';

Configuration

finder takes configuration object as second parameters. Here is example of all params with default values:

const selector = finder(event.target, {
  root: document.body,
  idName: (name) => true,
  className: (name) => true,
  tagName: (name) => true,
  attr: (name, value) => false,
  seedMinLength: 1,
  optimizedMinLength: 2,
  threshold: 1000,
  maxNumberOfTries: 10_000,
});

Keywords

css

FAQs

Package last updated on 25 Nov 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts