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

npm-bookmark-parser

v0.1.11

Published

Parses Chrome bookmarks file into JSON format

Downloads

1

Readme

npm-bookmark-parser

Node plugin to parse Chrome bookmarks into usable JSON format, via javascript.

Installing

npm install npm-bookmark-parser

Testing

grunt test

Usage

CoffeeScript

"use strict"
grunt = require("grunt")
parser = require("../index")
exports.nodeunit = 
    test_1: (test) ->
        test.expect 1
        parser("./test_subjects/chrome_bookmark.html",(results)->
            console.dir results
            test.ok true, "this had better work."
            test.done()
        )
    test_2: (test) ->
        test.expect 1
        parser("./test_subjects/chrome_bookmark2.html",(results)->
            console.dir results
            test.ok true, "this had better work."
            test.done()
        )

JavaScript

// Generated by CoffeeScript 1.6.2
"use strict";
var grunt, parser;

grunt = require("grunt");

parser = require("../index");

exports.nodeunit = {
  test_1: function(test) {
    test.expect(1);
    return parser("./test_subjects/chrome_bookmark.html", function(results) {
      console.dir(results);
      test.ok(true, "this had better work.");
      return test.done();
    });
  },
  test_2: function(test) {
    test.expect(1);
    return parser("./test_subjects/chrome_bookmark2.html", function(results) {
      console.dir(results);
      test.ok(true, "this had better work.");
      return test.done();
    });
  }
};

Example Output

[ { url: 'http://sourceforge.net/',
    name: 'SourceForge - Download, Develop and Publish Free Open Source Software',
    add_date: '1369192367',
    tags: [ 'OpenSource', 'Bookmarks Bar', 'Bookmarks' ] },
  { url: 'http://opensource.org/',
    name: 'The Open Source Initiative | Open Source Initiative',
    add_date: '1369192371',
    tags: [ 'OpenSource', 'Bookmarks Bar', 'Bookmarks' ] },
  { url: 'http://opensource.org/osd-annotated',
    name: 'The Open Source Definition (Annotated) | Open Source Initiative',
    add_date: '1369192373',
    tags: [ 'OpenSource', 'Bookmarks Bar', 'Bookmarks' ] },
  { url: 'http://www.osalt.com/',
    name: 'Find Open Source Alternatives to commercial software | Open Source Alternative - osalt.com',
    add_date: '1369192373',
    tags: [ 'OpenSource', 'Bookmarks Bar', 'Bookmarks' ] },
  { url: 'http://www.w3.org/Status.html',
    name: 'W3C Open Source Software',
    add_date: '1369192374',
    tags: [ 'OpenSource', 'Bookmarks Bar', 'Bookmarks' ] },
  { url: 'http://git-scm.com/',
    name: 'Git',
    add_date: '1369192375',
    tags: [ 'OpenSource', 'Bookmarks Bar', 'Bookmarks' ] },
  { url: 'http://git-scm.com/downloads',
    name: 'Git - Downloads',
    add_date: '1369192376',
    tags: [ 'OpenSource', 'Bookmarks Bar', 'Bookmarks' ] },
  { url: 'http://git-scm.com/documentation',
    name: 'Git - Documentation',
    add_date: '1369192376',
    tags: [ 'OpenSource', 'Bookmarks Bar', 'Bookmarks' ] },
  { url: 'http://en.wikipedia.org/wiki/Open-source_software',
    name: 'Open-source software - Wikipedia, the free encyclopedia',
    add_date: '1369192349',
    tags: [ 'Wiki', 'OpenSource', 'Bookmarks Bar', 'Bookmarks' ] },
  { url: 'http://www.gnu.org/distros/free-distros.html',
    name: 'List of Free GNU/Linux Distributions - GNU Project - Free Software Foundation',
    add_date: '1369192418',
    tags: [ 'linux', 'Bookmarks Bar', 'Bookmarks' ] },
  { url: 'http://en.wikipedia.org/wiki/Linux',
    name: 'Linux - Wikipedia, the free encyclopedia',
    add_date: '1369192419',
    tags: [ 'linux', 'Bookmarks Bar', 'Bookmarks' ] },
  { url: 'http://downloadlinuxfree.com/',
    name: 'Download Linux Free',
    add_date: '1369192421',
    tags: [ 'linux', 'Bookmarks Bar', 'Bookmarks' ] },
  { url: 'http://fedoraproject.org/',
    name: 'Fedora Project Homepage',
    add_date: '1369192422',
    tags: [ 'linux', 'Bookmarks Bar', 'Bookmarks' ] },
  { url: 'http://www.ubuntu.com/index_asus.html',
    name: 'The world\'s most popular free OS | Ubuntu',
    add_date: '1369192402',
    tags: [ 'ubuntu', 'linux', 'Bookmarks Bar', 'Bookmarks' ] },
  { url: 'http://www.askubuntu.com',
    name: 'Hottest Questions This Month - Ask Ubuntu',
    add_date: '1369192405',
    tags: [ 'ubuntu', 'linux', 'Bookmarks Bar', 'Bookmarks' ] } ]

License

MIT License

http://aponxi.mit-license.org/