
Product
Announcing Precomputed Reachability Analysis in Socket
Socket’s precomputed reachability slashes false positives by flagging up to 80% of vulnerabilities as irrelevant, with no setup and instant results.
Overlap two strings that contain new lines. Useful for ASCII drawings.
$ npm install overlap
var Overlap = require("overlap")
, Couleurs = require("couleurs")()
, a =
Couleurs.bg("+--------------+\n", 142, 68, 173) +
Couleurs.bg("| |\n", 142, 100, 200) +
Couleurs.bg("| " + Couleurs.fg("Hello World", 255, 255, 0), 142, 68, 173) + " |\n" +
Couleurs.bg("| |\n", 142, 100, 250) +
Couleurs.bg("| |\n", 142, 68, 173) +
Couleurs.bg("| |\n", 142, 68, 173) +
Couleurs.bg("| " + Couleurs.fg("Hello World", 0, 255, 0), 142, 68, 173) + Couleurs.bg(" |\n", 142, 68, 173) +
Couleurs.bg("| |\n", 231, 76, 60) +
Couleurs.bg("+--------------+", 231, 76, 60)
, b =
Couleurs.bold("+-------+\n") +
Couleurs.bg("| |\n", 192, 57, 43) +
Couleurs.bg("| |\n", 230, 126, 34) +
Couleurs.italic("+-------+")
;
console.log(Overlap({
who: a
, with: b
, where: {
x: 10
, y: 1
}
}));
Result:
Overlap(options)
Overlaps two strings.
options
: An object containing the following fields:who
(String): The first string.with
(String): The second string.where
(Object): The second string position:
x
(Number): The position on x
axis.y
(Number): The position on y
axis.your-great-feature
.1.3.0
where
fields to integer values.1.2.0
ansi-parser
to 1.2.0
.1.1.0
ansi-parser
to 1.1.0
.1.0.2
devDependencies
from package.json
file.1.0.1
ansi-parser
as dependency.1.0.0
v0.1.0
See the LICENSE file.
FAQs
Overlap two strings that contain new lines. Useful for ASCII drawings.
The npm package overlap receives a total of 1,547 weekly downloads. As such, overlap popularity was classified as popular.
We found that overlap 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.
Product
Socket’s precomputed reachability slashes false positives by flagging up to 80% of vulnerabilities as irrelevant, with no setup and instant results.
Product
Socket is launching experimental protection for Chrome extensions, scanning for malware and risky permissions to prevent silent supply chain attacks.
Product
Add secure dependency scanning to Claude Desktop with Socket MCP, a one-click extension that keeps your coding conversations safe from malicious packages.