Product
Introducing Enhanced Alert Actions and Triage Functionality
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
alter
Advanced tools
Readme
Alters a string by replacing multiple range fragments in one fast pass. Works in node and browsers.
var alter = require("alter");
alter("0123456789", [
{start: 1, end: 3, str: "first"},
{start: 5, end: 9, str: "second"},
]); // => "0first34second9"
The fragments does not need to be sorted but must not overlap. More examples in test/alter-tests.js
Install using npm
npm install alter
var alter = require("alter");
Clone the repo and include it in a script tag
git clone https://github.com/olov/alter.git
<script src="alter/alter.js"></script>
FAQs
alters a string by replacing multiple range fragments in one fast pass
The npm package alter receives a total of 146,183 weekly downloads. As such, alter popularity was classified as popular.
We found that alter demonstrated a not healthy version release cadence and project activity because the last version was released 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.
Product
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
Security News
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
Security News
OpenSSF is warning open source maintainers to stay vigilant against reputation farming on GitHub, where users artificially inflate their status by manipulating interactions on closed issues and PRs.