
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Overlap two strings that contain new lines. Useful for ASCII drawings.
$ npm i overlap
// Dependencies
var Overlap = require("overlap")
, Couleurs = require("couleurs")
, Box = require("cli-box")
;
// Create two boxes
var box1 = Box("20x10", Couleurs("Hello World", [142, 68, 173]))
, box2 = Box("30x5", Couleurs("Hello Mars!", "#c0392b"))
;
// Combine them
console.log(Overlap({
who: box1
, with: box2
, where: {
x: 17
, y: 2
}
}));
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.Have an idea? Found a bug? See how to contribute.
KINDLY © Ionică Bizău–The LICENSE file contains a copy of the license.
FAQs
Overlap two strings that contain new lines. Useful for ASCII drawings.
The npm package overlap receives a total of 2,015 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.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.