You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

bookmarkify

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bookmarkify - npm Package Compare versions

Comparing version

to
1.2.1

2

package.json
{
"name": "bookmarkify",
"version": "1.2.0",
"version": "1.2.1",
"description": "",

@@ -5,0 +5,0 @@ "main": "view-component-bookmarklet.js",

@@ -14,4 +14,11 @@ # Bookmarkify

```sh
bookmarkify source.js label > bookmarklet.js
bookmarkify ./source.js label > target.html
```
For example, if `./source.js` consists of just `alert()`, and you want the label to be "alert", then `bookmarkify ./source.js alert` will produce the following HTML:
```html
<a href="javascript:alert%28%29%3B">alert</a>
```
If you put this HTML on a page, users will be able to drag the link to their bookmarks bar and then click it to do stuff as defined in your code.