Skip to content

Commit 2fbd40f

Browse files
committed
Rename to scissors
1 parent 287188b commit 2fbd40f

File tree

5 files changed

+15
-15
lines changed

5 files changed

+15
-15
lines changed

README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
# spindrift
1+
# scissors
22

33
PDF manipulation in Node.js! Split, join, crop, read, extract, boil, mash, stick them in a stew.
44

55
## Example
66

77
```javascript
8-
var spindrift = require('spindrift');
8+
var scissors = require('scissors');
99

1010
// Use and chain any of these commands...
11-
var pdf = spindrift('in.pdf')
11+
var pdf = scissors('in.pdf')
1212
.pages(4, 5, 6, 1, 12) // select or reorder individual pages
1313
.range(1, 10) // pages 1-10
1414
.even() // select even pages
@@ -19,8 +19,8 @@ var pdf = spindrift('in.pdf')
1919
.crop(100, 100, 300, 200) // offset in points from left, bottom, right, top
2020

2121
// Join multiple files...
22-
var pdfA = spindrift('1.pdf'), pdfB = spindrift('2.pdf'), pdfC = spindrift('3.pdf')
23-
spindrift.join(pdfA.page(1), pdfB, pdfC.pages(5, 10)).deflate().pdfStream()...
22+
var pdfA = scissors('1.pdf'), pdfB = scissors('2.pdf'), pdfC = scissors('3.pdf')
23+
scissors.join(pdfA.page(1), pdfB, pdfC.pages(5, 10)).deflate().pdfStream()...
2424

2525
// And output data as streams.
2626
pdf.pdfStream().pipe(fs.createWriteStream('out.pdf')); // PDF of compiled output

bin/rasterize.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ function rasterizeImage (ins, page, dpi, boundingbox) {
6666

6767
function createTempFile (next) {
6868
debug('opening temp file');
69-
temp.open('spindrift', function (err, info) {
69+
temp.open('scissors', function (err, info) {
7070
debug('closing temp file', info.path);
7171
fs.close(info.fd, function () {
7272
debug('closed.');

example/test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
var fs = require('fs');
2-
var spindrift = require('..');
2+
var scissors = require('..');
33

4-
var pdf = spindrift(__dirname + '/test.pdf');
4+
var pdf = scissors(__dirname + '/test.pdf');
55
var page = pdf.pages(2);
66

77
// Streams

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"name": "spindrift",
2+
"name": "scissors",
33
"version": "0.1.0",
44
"description": "PDF manipulation in Node.js! Split, join, crop, read, extract, boil, mash, stick them in a stew. ",
5-
"main": "spindrift.js",
5+
"main": "scissors.js",
66
"dependencies": {
77
"temp": "~0.4.0",
88
"bufferjs": "~2.0.0",
@@ -12,7 +12,7 @@
1212
"devDependencies": {},
1313
"repository": {
1414
"type": "git",
15-
"url": "https://github.com/tcr/spindrift.git"
15+
"url": "https://github.com/tcr/scissors.git"
1616
},
1717
"author": "Tim Cameron Ryan",
1818
"license": "MIT",

spindrift.js renamed to scissors.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ function proxyStream (a, b) {
4242
}
4343
}
4444

45-
// spindrift
45+
// scissors
4646

4747
function Command (input, ready) {
4848
this.input = input;
@@ -364,13 +364,13 @@ Command.prototype._exec = function () {
364364
return stream;
365365
}
366366

367-
var spindrift = function (path) {
367+
var scissors = function (path) {
368368
return new Command(path);
369369
}
370370

371371
var joinTemp = temp.mkdirSync('pdfimages'), joinindex = 0;
372372

373-
spindrift.join = function () {
373+
scissors.join = function () {
374374
var args = Array.prototype.slice.call(arguments);
375375

376376
var outfile = joinTemp + '/' + (joinindex++) + '.pdf';
@@ -402,7 +402,7 @@ spindrift.join = function () {
402402
return pdf;
403403
}
404404

405-
module.exports = spindrift;
405+
module.exports = scissors;
406406

407407
/*
408408

0 commit comments

Comments
 (0)