feat: 초기 프로젝트 설정 및 룰.md 파일 추가
This commit is contained in:
5
api.hyungi.net/node_modules/pm2-axon/lib/configurable/History.md
generated
vendored
Normal file
5
api.hyungi.net/node_modules/pm2-axon/lib/configurable/History.md
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
|
||||
0.0.1 / 2010-01-03
|
||||
==================
|
||||
|
||||
* Initial release
|
||||
7
api.hyungi.net/node_modules/pm2-axon/lib/configurable/Makefile
generated
vendored
Normal file
7
api.hyungi.net/node_modules/pm2-axon/lib/configurable/Makefile
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
|
||||
test:
|
||||
@./node_modules/.bin/mocha \
|
||||
--require should \
|
||||
--reporter spec
|
||||
|
||||
.PHONY: test
|
||||
57
api.hyungi.net/node_modules/pm2-axon/lib/configurable/Readme.md
generated
vendored
Normal file
57
api.hyungi.net/node_modules/pm2-axon/lib/configurable/Readme.md
generated
vendored
Normal file
@@ -0,0 +1,57 @@
|
||||
|
||||
# configurable
|
||||
|
||||
Configuration mixin.
|
||||
|
||||
## API
|
||||
|
||||
Make something configurable:
|
||||
|
||||
```js
|
||||
var Configurable = require('configurable');
|
||||
|
||||
// plain obj
|
||||
var obj = {};
|
||||
Configurable(obj);
|
||||
|
||||
// returns the obj itself
|
||||
var obj = Configurable({});
|
||||
|
||||
// make a prototype configurable
|
||||
Configurable(MyThing.prototype);
|
||||
```
|
||||
|
||||
```js
|
||||
.get(name)
|
||||
.set(name, val)
|
||||
.set(obj)
|
||||
.enable(name)
|
||||
.disable(name)
|
||||
.enabled(name)
|
||||
.disabled(name)
|
||||
```
|
||||
|
||||
## License
|
||||
|
||||
(The MIT License)
|
||||
|
||||
Copyright (c) 2012 TJ Holowaychuk <tj@vision-media.ca>
|
||||
|
||||
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.
|
||||
2
api.hyungi.net/node_modules/pm2-axon/lib/configurable/index.js
generated
vendored
Normal file
2
api.hyungi.net/node_modules/pm2-axon/lib/configurable/index.js
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
|
||||
module.exports = require('./lib/configurable');
|
||||
47
api.hyungi.net/node_modules/pm2-axon/lib/configurable/lib/configurable.js
generated
vendored
Normal file
47
api.hyungi.net/node_modules/pm2-axon/lib/configurable/lib/configurable.js
generated
vendored
Normal file
@@ -0,0 +1,47 @@
|
||||
|
||||
/**
|
||||
* Make `obj` configurable.
|
||||
*
|
||||
* @param {Object} obj
|
||||
* @return {Object} the `obj`
|
||||
* @api public
|
||||
*/
|
||||
|
||||
module.exports = function(obj){
|
||||
|
||||
obj.settings = {};
|
||||
|
||||
obj.set = function(name, val){
|
||||
if (1 == arguments.length) {
|
||||
for (var key in name) {
|
||||
this.set(key, name[key]);
|
||||
}
|
||||
} else {
|
||||
this.settings[name] = val;
|
||||
}
|
||||
|
||||
return this;
|
||||
};
|
||||
|
||||
obj.get = function(name){
|
||||
return this.settings[name];
|
||||
};
|
||||
|
||||
obj.enable = function(name){
|
||||
return this.set(name, true);
|
||||
};
|
||||
|
||||
obj.disable = function(name){
|
||||
return this.set(name, false);
|
||||
};
|
||||
|
||||
obj.enabled = function(name){
|
||||
return !! this.get(name);
|
||||
};
|
||||
|
||||
obj.disabled = function(name){
|
||||
return ! this.get(name);
|
||||
};
|
||||
|
||||
return obj;
|
||||
};
|
||||
68
api.hyungi.net/node_modules/pm2-axon/lib/configurable/package.json
generated
vendored
Normal file
68
api.hyungi.net/node_modules/pm2-axon/lib/configurable/package.json
generated
vendored
Normal file
@@ -0,0 +1,68 @@
|
||||
{
|
||||
"_args": [
|
||||
[
|
||||
{
|
||||
"raw": "configurable@0.0.1",
|
||||
"scope": null,
|
||||
"escapedName": "configurable",
|
||||
"name": "configurable",
|
||||
"rawSpec": "0.0.1",
|
||||
"spec": "0.0.1",
|
||||
"type": "version"
|
||||
},
|
||||
"/home/unitech/keymetrics/pm2-axon"
|
||||
]
|
||||
],
|
||||
"_from": "configurable@0.0.1",
|
||||
"_id": "configurable@0.0.1",
|
||||
"_inCache": true,
|
||||
"_installable": true,
|
||||
"_location": "/configurable",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"raw": "configurable@0.0.1",
|
||||
"scope": null,
|
||||
"escapedName": "configurable",
|
||||
"name": "configurable",
|
||||
"rawSpec": "0.0.1",
|
||||
"spec": "0.0.1",
|
||||
"type": "version"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/configurable/-/configurable-0.0.1.tgz",
|
||||
"_shasum": "47d75b727b51b4eb84c1dadafe3f8240313833b1",
|
||||
"_shrinkwrap": null,
|
||||
"_spec": "configurable@0.0.1",
|
||||
"_where": "/home/unitech/keymetrics/pm2-axon",
|
||||
"author": {
|
||||
"name": "TJ Holowaychuk",
|
||||
"email": "tj@vision-media.ca"
|
||||
},
|
||||
"dependencies": {},
|
||||
"description": "Configuration mixin",
|
||||
"devDependencies": {
|
||||
"mocha": "*",
|
||||
"should": "*"
|
||||
},
|
||||
"directories": {},
|
||||
"dist": {
|
||||
"shasum": "47d75b727b51b4eb84c1dadafe3f8240313833b1",
|
||||
"tarball": "https://registry.npmjs.org/configurable/-/configurable-0.0.1.tgz"
|
||||
},
|
||||
"keywords": [
|
||||
"configuration"
|
||||
],
|
||||
"main": "index",
|
||||
"maintainers": [
|
||||
{
|
||||
"name": "tjholowaychuk",
|
||||
"email": "tj@vision-media.ca"
|
||||
}
|
||||
],
|
||||
"name": "configurable",
|
||||
"optionalDependencies": {},
|
||||
"readme": "ERROR: No README data found!",
|
||||
"version": "0.0.1"
|
||||
}
|
||||
Reference in New Issue
Block a user