Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zoubin/inline-bookmark
Create inline bookmarks
https://github.com/zoubin/inline-bookmark
Last synced: 8 days ago
JSON representation
Create inline bookmarks
- Host: GitHub
- URL: https://github.com/zoubin/inline-bookmark
- Owner: zoubin
- License: mit
- Created: 2015-10-13T12:47:56.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-01-22T06:05:29.000Z (almost 9 years ago)
- Last Synced: 2024-10-12T23:43:16.065Z (about 1 month ago)
- Language: JavaScript
- Homepage:
- Size: 11.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# inline-bookmark
Create inline bookmarks.[![version](https://img.shields.io/npm/v/inline-bookmark.svg)](https://www.npmjs.org/package/inline-bookmark)
[![status](https://travis-ci.org/zoubin/inline-bookmark.svg?branch=master)](https://travis-ci.org/zoubin/inline-bookmark)
[![dependencies](https://david-dm.org/zoubin/inline-bookmark.svg)](https://david-dm.org/zoubin/inline-bookmark)
[![devDependencies](https://david-dm.org/zoubin/inline-bookmark/dev-status.svg)](https://david-dm.org/zoubin/inline-bookmark#info=devDependencies)## Usage
```bash
npm i -g inline-bookmarkbookmark -h
```
### inline
```bash
bookmark -f example/alert.js```
alert.js
```javascript
alert('Hi, there!')```
output:
```
javascript:(function%20wrapper()%7Bfunction%20e()%7Balert(%22Hi%2C%20there!%22)%7Dvar%20t%3Ddocument.createElement(%22script%22)%3Bt.innerText%3D%22!%22%2Be.toString()%2B%22()%22%2Cdocument.head.appendChild(t)%7D)()```
### external
```bash
bookmark -x http://spriteme.org/spriteme.js```
output:
```
javascript:(function%20wrapper()%7Bvar%20e%3Ddocument.createElement(%22script%22)%3Be.type%3D%22text%2Fjavascript%22%2Ce.src%3D%22http%3A%2F%2Fspriteme.org%2Fspriteme.js%22%2Cdocument.head.appendChild(e)%7D)()```