@pom421/link-clipper
v1.0.4
Published
A module to clip links from a webpage and save them to a markdown file with a frontmatter
Readme
Link clipper
A ts node module to get information of an url and generate a md file with only front matter.
Installation
npm install link-clipperUsage
import { clipLink } from "@pom421/link-clipper";
async function main() {
const filePath = await clipLink("https://example.com", {
outputDir: "./clipped-links",
});
console.log(`File created: ${filePath}`);
}Release
// run changeset to document your new release
npx changeset
// commit your files
git add .
git commit -m "my comment"
// version package.json and publish on npmjs
npm run local-release