npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

text-to-bookmark

v0.0.7

Published

A utility to convert text files containing URLs into HTML bookmark files

Downloads

11

Readme

Text to Bookmark HTML Converter

text-to-bookmark is a straightforward utility that converts plain text files containing URLs into bookmark HTML files. These HTML files are compatible with most web browsers, making it easy to import and manage bookmarks.

Features

  • Easy Conversion: Convert plain text files with URLs into properly formatted bookmark HTML files.
  • No Bullets: The generated HTML file follows the standard bookmark format without any bullet points or list items.
  • Customization Options: Customize the output HTML format by specifying options such as the title of the bookmark file, styling bookmarks, and adding metadata like creation date and author information.
  • Command-Line Interface: Simple CLI for quick and easy use.
  • Automation-Friendly: Integrate the tool into scripts or automated workflows for seamless bookmark management.

Installation

To use this package, you need to have Node.js installed on your system. Then, you can install the package globally using npm:

npm install -g text-to-bookmark

Usage After installing the package, you can use the text-to-bookmark command in your terminal to convert a text file to HTML format. Here's the basic syntax:

text-to-bookmark <input-file> <output-file> [--title=<title>] [--style=<style>] [--author=<author>] [--date=<creationDate>]

Replace <input-file> with the path to your text file containing URLs, and <output-file> with the desired filename for the HTML bookmark file.

You can customize the output HTML file by specifying options such as title, style, author, and creation date.

Examples

Basic Conversion

Suppose you have a text file named links.txt with the following content:

https://example.com/page1
https://example.com/page2
https://example.com/page3
https://example.com/page4
https://example.com/page5
https://example.com/page6

Convert a text file to HTML bookmarks without any customization:

text-to-bookmark links.txt bookmarks.html

Customizing Title and Styling

Customize the title and style of the HTML bookmarks:

text-to-bookmark links.txt bookmarks.html --title="My Bookmarks" --style="minimal"

Supported Styles

The following table lists the supported styles for customizing the appearance of the HTML bookmarks:

| Style | Description | |---------|-------------------------------------------------------| | default | Default style with standard font and colors | | minimal | Minimalistic style with clean layout | | modern | Modern style with sleek design | | classic | Classic style reminiscent of traditional bookmarks | | dark | Dark theme with high contrast | | elegant | Elegant style with sophisticated typography | | neon | Neon-inspired theme with vibrant colors | | pastel | Soft pastel colors for a gentle look | | retro | Retro style with nostalgic vibes |

Sample Nested Bookmarks

Here's a sample nested bookmarks structure:

My categories:
  Technology:
    - [TechCrunch](https://www.techcrunch.com)
    - [Wired](https://www.wired.com)
    Programming:
      - [Stack Overflow](https://stackoverflow.com)
      - [GitHub](https://github.com)
  News:
    - [BBC](https://www.bbc.com)
    - [CNN](https://www.cnn.com)
  Education:
    - [Khan Academy](https://www.khanacademy.org)
    - [Coursera](https://www.coursera.org)
  Entertainment:
    - [Netflix](https://www.netflix.com)
    - [Spotify](https://www.spotify.com)

These sample nested bookmarks demonstrate how you can organize your bookmarks into hierarchical categories and subcategories for better organization and navigation. When converted using the text-to-bookmark utility, they will generate nested folders in the HTML bookmark file.

Adding Metadata

Add author and creation date metadata to the HTML bookmarks:

text-to-bookmark links.txt bookmarks.html --author="John Doe" --date="2024-05-31"

License

This project is licensed under the MIT License - see the LICENSE file for details.

Note: While customization options like style, author, and date may not reflect in web browsers as they override the default styles, feel free to use them to create bookmarks that look good and function as intended. Future updates may address this limitation.