diff options
Diffstat (limited to 'node_modules/bookmarklet/package.json')
| -rw-r--r-- | node_modules/bookmarklet/package.json | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/node_modules/bookmarklet/package.json b/node_modules/bookmarklet/package.json new file mode 100644 index 0000000..9a5939f --- /dev/null +++ b/node_modules/bookmarklet/package.json @@ -0,0 +1,38 @@ +{ + "name": "bookmarklet", + "version": "0.0.4", + "description": "A JavaScript bookmarklet compiler with greasmonkey userscript-like metadata options", + "main": "bookmarklet.js", + "bin": { + "bookmarklet": "./bin/bookmarklet" + }, + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "repository": { + "type": "git", + "url": "https://github.com/mrcoles/bookmarklet" + }, + "keywords": [ + "bookmarklet" + ], + "author": { + "name": "Peter Coles" + }, + "license": "MIT", + "readmeFilename": "README.md", + "dependencies": { + "uglify-js": "2.2.x" + }, + "readme": "\nBookmarklet: sane development, familiar format\n==============================================\n\nBookmarklet is a nodejs module for compiling bookmarklets in server-side code and directly from the shell. You can run it on any JavaScript file—it will minify it using uglify-js, wrap it in a self executing function, and return an escaped bookmarklet.\n\nMore so, it supports a metadata block—modeled after the [greasemonkey userscript metadata block](http://wiki.greasespot.net/Metadata_Block)—to specify metadata, external stylesheets and script includes, which can look like this:\n\n // ==Bookmarklet==\n // @name LoveGames\n // @author Old Gregg\n // @style http://www.cornify.com/css/cornify.css\n // @script https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js\n // ==/Bookmarklet==\n\nMost notably, you can specify any external scripts that you’d like your bookmarklet to include via the `@script` rule, which can be repeated as many times as you’d like.\n\nNOTE: currently with script includes you have to handle `noConflict` scenarios yourself, e.g., you might want to start off a script with `var $ = jQuery.noConflict(true)`.\n\nIn addition, any css files included with `@style` will be injected.\n\nThis project is new and open to suggestions & pull requests.\n\nAlso, if you’re just looking for a quick way to throw together a bookmarklet, try my [browser-based bookmarklet creator](http://mrcoles.com/bookmarklet/).\n", + "bugs": { + "url": "https://github.com/mrcoles/bookmarklet/issues" + }, + "homepage": "https://github.com/mrcoles/bookmarklet", + "_id": "bookmarklet@0.0.4", + "dist": { + "shasum": "1c42b9589fde1e312429887be74c914dd7b0c46e" + }, + "_from": "bookmarklet@0.x", + "_resolved": "https://registry.npmjs.org/bookmarklet/-/bookmarklet-0.0.4.tgz" +} |
