Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ruanyl/html-slicer
https://github.com/ruanyl/html-slicer
Last synced: 18 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/ruanyl/html-slicer
- Owner: ruanyl
- License: mit
- Created: 2015-01-25T10:24:32.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-07-06T20:36:33.000Z (over 9 years ago)
- Last Synced: 2024-12-05T15:49:26.292Z (about 1 month ago)
- Language: JavaScript
- Homepage: http://blog.bigruan.com/html-slicer/
- Size: 1020 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
html-slicer
========
[![NPM version](https://badge.fury.io/js/html-slicer.svg)](http://badge.fury.io/js/html-slicer)If you have ever used Evernote web clipper, you must know how amazing it is. This small tool trys to implement parts of its functions.
## Installation
This module is installed via npm:
``` bash
$ npm install html-slicer
```## Example Usage
``` js
var htmlSlicer = require('html-slicer');
htmlSlicer({url: 'http://nodejs.org', selector: '#column1'},
function(result) {
console.log(result);
});
```What this tool basically does is it clip part(which selector specified) of an webpage, and returns the result as html with inline css.
## Previou
### before -->
![before](https://raw.githubusercontent.com/ruanyl/html-slicer/gh-pages/images/origin.png)### after -->
![after](https://raw.githubusercontent.com/ruanyl/html-slicer/gh-pages/images/after.png)