@ryanccn/bookmarklet

0.1.3 • Public • Published

🔖 @ryanccn/bookmarklet

A CLI for creating bookmarklets.

It's powered by sade, esbuild, and TypeScript.

Getting Started

Install @ryanccn/bookmarklet into your project or globally:

# locally
$ npm i -D @ryanccn/bookmarklet
$ yarn add --dev @ryanccn/bookmarklet

# globally
$ npm i -g @ryanccn/bookmarklet
$ yarn global add @ryanccn/bookmarklet

And build your bookmarklet!

$ bookmarklet index.ts

Built in 11.81ms
Wrote to bookmarklet.txt
[copied to clipboard]

Configuration

bookmarklet currently reads configuration from

  1. .bookmarklet.mjs
  2. .bookmarklet.json

The types are as follows:

{
  target?: string | undefined;
  write?: string | false;
  print?: boolean;
  copy?: boolean;
}

Readme

Keywords

none

Package Sidebar

Install

npm i @ryanccn/bookmarklet

Weekly Downloads

2

Version

0.1.3

License

MIT

Unpacked Size

6.34 kB

Total Files

4

Last publish

Collaborators

  • ryanccn