New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

bookbu

Package Overview
Dependencies
Maintainers
0
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bookbu

Simple build script for bookmarklets

latest
Source
npmnpm
Version
0.1.1
Version published
Maintainers
0
Created
Source

Simple build script for bookmarklets.

It makes few things:

  • minifies your code (using uglify-js)
  • wraps your code in (function(){}()) if it's not wrapped yet
  • adds javascript: prefix
  • preforms encodeURI to prevent collisions with double-quotes in A href
  • optionally, generates HTML file with A element to test your bookmarklet

Usage: bookbu.js <filename> [html]

To just parse the code and get result in the console: node bookbu.js test.js

To generate html file in which you'll get a link with your bookmarklet: node bookbu.js test.js html

Dependencies: uglify-js

Keywords

bookmarklet build

FAQs

Package last updated on 09 Apr 2011

Did you know?

Socket

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.

Install

Related posts