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

parsesearch

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

parsesearch

A command line tool for searching for things in a project that regex isn't suited for—e.g., a Vue component that uses both `v-model` and `v-on:input`.

latest
Source
npmnpm
Version
0.2.0
Version published
Maintainers
1
Created
Source

parsesearch

A command line tool for searching for things in a project that regex isn't suited for—e.g., a Vue component that uses both v-model and v-on:input.

(if anyone is good at naming things please help)

Usage

Usage: parsesearch [options] <match> [file...]

Utility to search for code in a project using a parser, not regex

Arguments:
  match                  The match to search for
  file                   The file(s) to search

Options:
  -p, --parser <parser>  The parser to use (choices: "vue-sfc", default: "vue-sfc")
  -h, --help             display help for command

The following finds all Vue components using both @input and v-model:

$ npx parsesearch "@input v-model"

It does a bit of parsing, so v-on:input and @input are considered to be the same. It's not very good at it yet though and I can't work out how to use the actual Vue parser for this side of things.

FAQs

Package last updated on 14 Apr 2023

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