mirror of
https://github.com/mgerb/mywebsite
synced 2026-01-13 11:12:47 +00:00
updated package.json
This commit is contained in:
24
node_modules/cliff/examples/inspect.js
generated
vendored
Normal file
24
node_modules/cliff/examples/inspect.js
generated
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
/*
|
||||
* put-object.js: Example usage for `cliff.putObject`.
|
||||
*
|
||||
* (C) 2010, Nodejitsu Inc.
|
||||
*
|
||||
*/
|
||||
|
||||
var cliff = require('../lib/cliff');
|
||||
|
||||
console.log(cliff.inspect({
|
||||
literal: "bazz",
|
||||
arr: [
|
||||
"one",
|
||||
2,
|
||||
],
|
||||
obj: {
|
||||
host: "localhost",
|
||||
port: 5984,
|
||||
auth: {
|
||||
username: "admin",
|
||||
password: "password"
|
||||
}
|
||||
}
|
||||
}));
|
||||
23
node_modules/cliff/examples/put-object-rows.js
generated
vendored
Normal file
23
node_modules/cliff/examples/put-object-rows.js
generated
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
/*
|
||||
* put-object-rows.js: Example usage for `cliff.putObjectRows`.
|
||||
*
|
||||
* (C) 2010, Nodejitsu Inc.
|
||||
*
|
||||
*/
|
||||
|
||||
var cliff = require('../lib/cliff');
|
||||
|
||||
var objs = [], obj = {
|
||||
name: "bazz",
|
||||
address: "1234 Nowhere Dr.",
|
||||
};
|
||||
|
||||
for (var i = 0; i < 10; i++) {
|
||||
objs.push({
|
||||
name: obj.name,
|
||||
address: obj.address,
|
||||
id: Math.random().toString()
|
||||
});
|
||||
}
|
||||
|
||||
cliff.putObjectRows('data', objs, ['id', 'name', 'address']);
|
||||
24
node_modules/cliff/examples/put-object.js
generated
vendored
Normal file
24
node_modules/cliff/examples/put-object.js
generated
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
/*
|
||||
* put-object.js: Example usage for `cliff.putObject`.
|
||||
*
|
||||
* (C) 2010, Nodejitsu Inc.
|
||||
*
|
||||
*/
|
||||
|
||||
var cliff = require('../lib/cliff');
|
||||
|
||||
cliff.putObject({
|
||||
literal: "bazz",
|
||||
arr: [
|
||||
"one",
|
||||
2,
|
||||
],
|
||||
obj: {
|
||||
host: "localhost",
|
||||
port: 5984,
|
||||
auth: {
|
||||
username: "admin",
|
||||
password: "password"
|
||||
}
|
||||
}
|
||||
});
|
||||
12
node_modules/cliff/examples/put-rows-colors.js
generated
vendored
Normal file
12
node_modules/cliff/examples/put-rows-colors.js
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
var cliff = require('../lib/cliff');
|
||||
|
||||
var rows = [
|
||||
['Name', 'Flavor', 'Dessert'],
|
||||
['Alice'.grey, 'cherry'.cyan, 'yogurt'.yellow],
|
||||
['Bob'.magenta, 'carmel'.rainbow, 'apples'.white],
|
||||
['Joe'.italic, 'chocolate'.underline, 'cake'.inverse],
|
||||
['Nick'.bold, 'vanilla', 'ice cream']
|
||||
];
|
||||
|
||||
cliff.putRows('data', rows, ['red', 'blue', 'green']);
|
||||
|
||||
11
node_modules/cliff/examples/put-rows.js
generated
vendored
Normal file
11
node_modules/cliff/examples/put-rows.js
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
var cliff = require('../lib/cliff');
|
||||
|
||||
var rows = [
|
||||
['Name', 'Flavor', 'Dessert'],
|
||||
['Alice', 'cherry', 'yogurt'],
|
||||
['Bob', 'carmel', 'apples'],
|
||||
['Joe', 'chocolate', 'cake'],
|
||||
['Nick', 'vanilla', 'ice cream']
|
||||
];
|
||||
|
||||
cliff.putRows('data', rows, ['red', 'blue', 'green']);
|
||||
23
node_modules/cliff/examples/string-object-rows.js
generated
vendored
Normal file
23
node_modules/cliff/examples/string-object-rows.js
generated
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
/*
|
||||
* put-object-rows.js: Example usage for `cliff.putObjectRows`.
|
||||
*
|
||||
* (C) 2010, Nodejitsu Inc.
|
||||
*
|
||||
*/
|
||||
|
||||
var cliff = require('../lib/cliff');
|
||||
|
||||
var objs = [], obj = {
|
||||
name: "bazz",
|
||||
address: "1234 Nowhere Dr.",
|
||||
};
|
||||
|
||||
for (var i = 0; i < 10; i++) {
|
||||
objs.push({
|
||||
name: obj.name,
|
||||
address: obj.address,
|
||||
id: Math.random().toString()
|
||||
});
|
||||
}
|
||||
|
||||
console.log(cliff.stringifyObjectRows(objs, ['id', 'name', 'address'], ['red', 'blue', 'green']));
|
||||
11
node_modules/cliff/examples/string-rows.js
generated
vendored
Normal file
11
node_modules/cliff/examples/string-rows.js
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
var cliff = require('../lib/cliff');
|
||||
|
||||
var rows = [
|
||||
['Name', 'Flavor', 'Dessert'],
|
||||
['Alice', 'cherry', 'yogurt'],
|
||||
['Bob', 'carmel', 'apples'],
|
||||
['Joe', 'chocolate', 'cake'],
|
||||
['Nick', 'vanilla', 'ice cream']
|
||||
];
|
||||
|
||||
console.log(cliff.stringifyRows(rows, ['red', 'blue', 'green']));
|
||||
Reference in New Issue
Block a user