diff options
Diffstat (limited to 'deps/node/deps/npm/node_modules/editor')
6 files changed, 0 insertions, 171 deletions
diff --git a/deps/node/deps/npm/node_modules/editor/LICENSE b/deps/node/deps/npm/node_modules/editor/LICENSE deleted file mode 100644 index 8b856bc4..00000000 --- a/deps/node/deps/npm/node_modules/editor/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -Copyright 2013 James Halliday (mail@substack.net) - -This project is free software released under the MIT license: - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/deps/node/deps/npm/node_modules/editor/README.markdown b/deps/node/deps/npm/node_modules/editor/README.markdown deleted file mode 100644 index c1121cad..00000000 --- a/deps/node/deps/npm/node_modules/editor/README.markdown +++ /dev/null @@ -1,54 +0,0 @@ -editor -====== - -Launch $EDITOR in your program. - -example -======= - -``` js -var editor = require('editor'); -editor('beep.json', function (code, sig) { - console.log('finished editing with code ' + code); -}); -``` - -*** - -``` -$ node edit.js -``` - -![editor](http://substack.net/images/screenshots/editor.png) - -``` -finished editing with code 0 -``` - -methods -======= - -``` js -var editor = require('editor') -``` - -editor(file, opts={}, cb) -------------------------- - -Launch the `$EDITOR` (or `opts.editor`) for `file`. - -When the editor exits, `cb(code, sig)` fires. - -install -======= - -With [npm](http://npmjs.org) do: - -``` -npm install editor -``` - -license -======= - -MIT diff --git a/deps/node/deps/npm/node_modules/editor/example/beep.json b/deps/node/deps/npm/node_modules/editor/example/beep.json deleted file mode 100644 index ac07d2da..00000000 --- a/deps/node/deps/npm/node_modules/editor/example/beep.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "a" : 3, - "b" : 4, - "c" : 5 -} diff --git a/deps/node/deps/npm/node_modules/editor/example/edit.js b/deps/node/deps/npm/node_modules/editor/example/edit.js deleted file mode 100644 index ee117287..00000000 --- a/deps/node/deps/npm/node_modules/editor/example/edit.js +++ /dev/null @@ -1,4 +0,0 @@ -var editor = require('../'); -editor(__dirname + '/beep.json', function (code, sig) { - console.log('finished editing with code ' + code); -}); diff --git a/deps/node/deps/npm/node_modules/editor/index.js b/deps/node/deps/npm/node_modules/editor/index.js deleted file mode 100644 index 3774edbe..00000000 --- a/deps/node/deps/npm/node_modules/editor/index.js +++ /dev/null @@ -1,20 +0,0 @@ -var spawn = require('child_process').spawn; - -module.exports = function (file, opts, cb) { - if (typeof opts === 'function') { - cb = opts; - opts = {}; - } - if (!opts) opts = {}; - - var ed = /^win/.test(process.platform) ? 'notepad' : 'vim'; - var editor = opts.editor || process.env.VISUAL || process.env.EDITOR || ed; - var args = editor.split(/\s+/); - var bin = args.shift(); - - var ps = spawn(bin, args.concat([ file ]), { stdio: 'inherit' }); - - ps.on('exit', function (code, sig) { - if (typeof cb === 'function') cb(code, sig) - }); -}; diff --git a/deps/node/deps/npm/node_modules/editor/package.json b/deps/node/deps/npm/node_modules/editor/package.json deleted file mode 100644 index e7dd7f32..00000000 --- a/deps/node/deps/npm/node_modules/editor/package.json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "_args": [ - [ - "editor@1.0.0", - "/Users/rebecca/code/npm" - ] - ], - "_from": "editor@1.0.0", - "_id": "editor@1.0.0", - "_inBundle": false, - "_integrity": "sha1-YMf4e9YrzGqJT6jM1q+3gjok90I=", - "_location": "/editor", - "_phantomChildren": {}, - "_requested": { - "type": "version", - "registry": true, - "raw": "editor@1.0.0", - "name": "editor", - "escapedName": "editor", - "rawSpec": "1.0.0", - "saveSpec": null, - "fetchSpec": "1.0.0" - }, - "_requiredBy": [ - "/" - ], - "_resolved": "https://registry.npmjs.org/editor/-/editor-1.0.0.tgz", - "_spec": "1.0.0", - "_where": "/Users/rebecca/code/npm", - "author": { - "name": "James Halliday", - "email": "mail@substack.net", - "url": "http://substack.net" - }, - "bugs": { - "url": "https://github.com/substack/node-editor/issues" - }, - "dependencies": {}, - "description": "launch $EDITOR in your program", - "devDependencies": { - "tap": "~0.4.4" - }, - "directories": { - "example": "example", - "test": "test" - }, - "engine": { - "node": ">=0.6" - }, - "homepage": "https://github.com/substack/node-editor", - "keywords": [ - "text", - "edit", - "shell" - ], - "license": "MIT", - "main": "index.js", - "name": "editor", - "repository": { - "type": "git", - "url": "git://github.com/substack/node-editor.git" - }, - "scripts": { - "test": "tap test/*.js" - }, - "version": "1.0.0" -} |