mirror of
https://github.com/titanscouting/tra-analysis.git
synced 2025-09-09 16:17:22 +00:00
push all website files
This commit is contained in:
21
website/node_modules/npm/node_modules/editor/LICENSE
generated
vendored
Normal file
21
website/node_modules/npm/node_modules/editor/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
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.
|
54
website/node_modules/npm/node_modules/editor/README.markdown
generated
vendored
Normal file
54
website/node_modules/npm/node_modules/editor/README.markdown
generated
vendored
Normal file
@@ -0,0 +1,54 @@
|
||||
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
|
||||
```
|
||||
|
||||

|
||||
|
||||
```
|
||||
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
|
5
website/node_modules/npm/node_modules/editor/example/beep.json
generated
vendored
Normal file
5
website/node_modules/npm/node_modules/editor/example/beep.json
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"a" : 3,
|
||||
"b" : 4,
|
||||
"c" : 5
|
||||
}
|
4
website/node_modules/npm/node_modules/editor/example/edit.js
generated
vendored
Normal file
4
website/node_modules/npm/node_modules/editor/example/edit.js
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
var editor = require('../');
|
||||
editor(__dirname + '/beep.json', function (code, sig) {
|
||||
console.log('finished editing with code ' + code);
|
||||
});
|
20
website/node_modules/npm/node_modules/editor/index.js
generated
vendored
Normal file
20
website/node_modules/npm/node_modules/editor/index.js
generated
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
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)
|
||||
});
|
||||
};
|
67
website/node_modules/npm/node_modules/editor/package.json
generated
vendored
Normal file
67
website/node_modules/npm/node_modules/editor/package.json
generated
vendored
Normal file
@@ -0,0 +1,67 @@
|
||||
{
|
||||
"_args": [
|
||||
[
|
||||
"editor@1.0.0",
|
||||
"/Users/rebecca/code/npm"
|
||||
]
|
||||
],
|
||||
"_from": "editor@1.0.0",
|
||||
"_id": "editor@1.0.0",
|
||||
"_inBundle": true,
|
||||
"_integrity": "sha1-YMf4e9YrzGqJT6jM1q+3gjok90I=",
|
||||
"_location": "/npm/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": [
|
||||
"/npm"
|
||||
],
|
||||
"_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"
|
||||
}
|
Reference in New Issue
Block a user