
Security News
Federal Government Rescinds Software Supply Chain Mandates, Makes SBOMs Optional
The U.S. government is rolling back software supply chain mandates, shifting from mandatory SBOMs and attestations to a risk-based approach.
linkify-issues
Advanced tools
Linkify GitHub issue references
$ npm install linkify-issues
const linkifyIssues = require('linkify-issues');
linkifyIssues('Fixes #143 and avajs/ava#1023', {
user: 'sindresorhus',
repository: 'dofle',
attributes: {
class: 'unicorn',
multiple: ['a', 'b'],
number: 1,
exclude: false,
include: true
}
});
//=> 'Fixes <a href="https://github.com/sindresorhus/dofle/issues/143" class="unicorn" multiple="a b" number="1" include>#143</a> and <a href="https://github.com/avajs/ava/issues/1023" class="unicorn" multiple="a b" number="1" include>avajs/ava#1023</a>'
const fragment = linkifyUrls('See #143', {
user: 'sindresorhus',
repository: 'dofle',
type: 'dom',
attributes: {
class: 'unicorn',
}
});
document.body.appendChild(fragment);
Type: string
String with issue references to linkify.
Type: object
Type: string
GitHub user.
Type: string
GitHub repository.
Type: object
HTML attributes to add to the link.
Type: string
Default: 'https://github.com'
Base URL.
Type: string
Values: 'string' 'dom'
Default: 'string'
Format of the generated content.
'string' will return it as a flat string like 'See <a href="https://github.com/sindresorhus/dofle/issue/143">#143</a>'.
'dom' will return it as a DocumentFragment ready to be appended in a DOM safely, like DocumentFragment(TextNode('See '), HTMLAnchorElement('#143')). This type only works in the browser.
MIT © Sindre Sorhus
FAQs
Linkify GitHub issue references
The npm package linkify-issues receives a total of 675 weekly downloads. As such, linkify-issues popularity was classified as not popular.
We found that linkify-issues demonstrated a healthy version release cadence and project activity because the last version was released less than 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
The U.S. government is rolling back software supply chain mandates, shifting from mandatory SBOMs and attestations to a risk-based approach.

Security News
crates.io adds a Security tab backed by RustSec advisories and narrows trusted publishing paths to reduce common CI publishing risks.

Research
/Security News
A Chrome extension claiming to hide Amazon ads was found secretly hijacking affiliate links, replacing creators’ tags with its own without user consent.