
Security News
Crates.io Implements Trusted Publishing Support
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
build a regex from user input for filtering data
$ npm install like
var like = require('like')
var filter = like(searchField.value)
var matches = items.filter(function (x) {
return filter.test(x)
})
// or we could get a predicate function like so:
var matches = items.filter(like.fn(searchField.value))
note As of 0.3.0, matches are case-sensitive by default. Functions take an options parameter which takes a ignoreCase
option. Example:
like('foo', {ignoreCase: true})
Described using jsig:
type Predicate : (Value) => Boolean
like : (String, options: Object?) => RegExp
like.startsWith : (String, options: Object?) => RegExp
like.endsWith : (String, options: Object?) => RegExp
like.fn : (String, options: Object?) => Predicate
like.startsWithFn : (String, options: Object?) => Predicate
like.endsWithFn : (String, options: Object?) => Predicate
$ git clone git@github.com:AgileDiagnosis/like.git && cd like
$ npm install
$ npm test
substack for quotemeta
jden jason@denizac.org
MIT. (c) 2013 Agile Diagnosis hello@agilediagnosis.com. See LICENSE.md
FAQs
build a regex from user input for filtering data
The npm package like receives a total of 24 weekly downloads. As such, like popularity was classified as not popular.
We found that like demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
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.
Security News
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.
Research
/Security News
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.