Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
regexp.prototype.flags
Advanced tools
Changelog
v1.3.2 - 2022-01-13
6665b5d
node/install
instead of node/run
; use codecov
action babce94
eslint
, @ljharb/eslint-config
, @es-shims/api
, object-inspect
, safe-publish-latest
, tape
52132d9
eslint
, @ljharb/eslint-config
, @es-shims/api
, aud
, auto-changelog
, object-inspect
, tape
c16687c
0a3c904
eslint
, @ljharb/eslint-config
, aud
, object-inspect
, tape
3fce7f2
eslint
, @ljharb/eslint-config
, aud
, tape
75ca498
300f321
eccheck
command 5f735ab
eslint
, tape
3059637
[
dbd8ab4`](https://github.com/es-shims/RegExp.prototype.flags/commit/dbd8ab49fa2196dd74791107825c43e4481cdfd2)prepublishOnly
script for npm 7+ 5cc8652
15ab4b8
audit-level
config, which breaks npm 7 installs 1cb98ae
Readme
An ES6 spec-compliant RegExp.prototype.flags
shim. Invoke its "shim" method to shim RegExp.prototype.flags if it is unavailable.
Note: RegExp#flags
requires a true ES5 environment - specifically, one with ES5 getters.
This package implements the es-shim API interface. It works in an ES5-supported environment and complies with the spec.
Most common usage:
var flags = require('regexp.prototype.flags');
assert(flags(/a/) === '');
assert(flags(new RegExp('a') === '');
assert(flags(/a/mig) === 'gim');
assert(flags(new RegExp('a', 'mig')) === 'gim');
if (!RegExp.prototype.flags) {
flags.shim();
}
assert(flags(/a/) === /a/.flags);
assert(flags(new RegExp('a') === new RegExp('a').flags);
assert(flags(/a/mig) === /a/mig.flags);
assert(flags(new RegExp('a', 'mig')) === new RegExp('a', 'mig').flags);
Simply clone the repo, npm install
, and run npm test
FAQs
ES6 spec-compliant RegExp.prototype.flags shim.
The npm package regexp.prototype.flags receives a total of 27,974,281 weekly downloads. As such, regexp.prototype.flags popularity was classified as popular.
We found that regexp.prototype.flags demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.