@breadcrum/bookmarklet

1.0.10 • Public • Published

@breadcrum/bookmarklet

Actions Status latest version Coverage Status

This is the bookmarklet for Breadcrum.net.

npm install bookmarklet

Usage

import getBookmarklet from '@breadcrum/bookmarklet'

const bookmarkletText = getBookmarklet({
  TARGET_URL: 'breadcrum.net',
  WINDOW_TITLE: 'Breadcrum'
})

Returns the bookmarklet text with simple runtime customizations so that environments can fix hard-coded variables.

How this works

esbuild used used to build standard, modular esm code into a minified iffi target, and then the reults are stored in a json document that gets customised with .replaceAll in the exported getBookmarklet function.

See also

This bookmarklet was based off of the following resources:

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i @breadcrum/bookmarklet

Weekly Downloads

19

Version

1.0.10

License

MIT

Unpacked Size

10.3 kB

Total Files

7

Last publish

Collaborators

  • bret