
Product
Socket Brings Supply Chain Security to skills.sh
Socket is now scanning AI agent skills across multiple languages and ecosystems, detecting malicious behavior before developers install, starting with skills.sh's 60,000+ skills.
Generate (relative) reference links for a glob of markdown files, allowing you to more easily create references from one file to another.
Generate (relative) reference links for a glob of markdown files, allowing you to more easily create references from one file to another.
Install with npm:
$ npm install --save reflinks
HEADS UP!
The API was completely changed in v0.2. The main export is now an async function that expects a callback, and instead of globbing local files, reflinks are created from npm package names.
var reflinks = require('reflinks');
reflinks(['base', 'verb', 'generate'], function(err, links) {
if (err) return console.log(err);
console.log(links);
// results in:
// [ '[generate]: https://github.com/generate/generate',
// '[verb]: https://github.com/verbose/verb',
// '[base]: https://github.com/node-base/base' ]
});
By default results are cached for 7 days. See pkg-cache for more details and API documentation related to caching packages.
Disable caching by setting options.cache to false.
Type: Boolean
Default: undefined
reflinks(['base'], { cache: false }, function(err, links) {
if (err) return console.log(err);
});
This option is also aliased as reflinksCache.
Delete the cache by setting options.clearCache to true.
Type: Boolean
Default: undefined
reflinks(['base'], { clearCache: true }, function(err, links) {
if (err) return console.log(err);
});
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
(This document was generated by verb-generate-readme (a verb generator), please don't edit the readme directly. Any changes to the readme must be made in .verb.md.)
To generate the readme and API documentation with verb:
$ npm install -g verb verb-generate-readme && verb
Install dev dependencies:
$ npm install -d && npm test
Jon Schlinkert
Copyright © 2016, Jon Schlinkert. Released under the MIT license.
This file was generated by verb, v0.9.0, on July 18, 2016.
FAQs
Generate (relative) reference links for a glob of markdown files, allowing you to more easily create references from one file to another.
The npm package reflinks receives a total of 291 weekly downloads. As such, reflinks popularity was classified as not popular.
We found that reflinks demonstrated a not healthy version release cadence and project activity because the last version was released 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.

Product
Socket is now scanning AI agent skills across multiple languages and ecosystems, detecting malicious behavior before developers install, starting with skills.sh's 60,000+ skills.

Product
Socket now supports PHP with full Composer and Packagist integration, enabling developers to search packages, generate SBOMs, and protect their PHP dependencies from supply chain threats.

Security News
An AI agent is merging PRs into major OSS projects and cold-emailing maintainers to drum up more work.