mirror of
https://github.com/atlanticbiomedical/biomedjs.git
synced 2025-07-02 00:47:26 -04:00
Changes
This commit is contained in:
19
node_modules/pkginfo/examples/all-properties.js
generated
vendored
Normal file
19
node_modules/pkginfo/examples/all-properties.js
generated
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
/*
|
||||
* all-properties.js: Sample of including all properties from a package.json file
|
||||
*
|
||||
* (C) 2011, Charlie Robbins
|
||||
*
|
||||
*/
|
||||
|
||||
var util = require('util'),
|
||||
pkginfo = require('../lib/pkginfo')(module);
|
||||
|
||||
exports.someFunction = function () {
|
||||
console.log('some of your custom logic here');
|
||||
};
|
||||
|
||||
console.log('Inspecting module:');
|
||||
console.dir(module.exports);
|
||||
|
||||
console.log('\nAll exports exposed:');
|
||||
console.error(Object.keys(module.exports));
|
20
node_modules/pkginfo/examples/array-argument.js
generated
vendored
Normal file
20
node_modules/pkginfo/examples/array-argument.js
generated
vendored
Normal file
@ -0,0 +1,20 @@
|
||||
/*
|
||||
* array-argument.js: Sample of including specific properties from a package.json file
|
||||
* using Array argument syntax.
|
||||
*
|
||||
* (C) 2011, Charlie Robbins
|
||||
*
|
||||
*/
|
||||
|
||||
var util = require('util'),
|
||||
pkginfo = require('../lib/pkginfo')(module, ['version', 'author']);
|
||||
|
||||
exports.someFunction = function () {
|
||||
console.log('some of your custom logic here');
|
||||
};
|
||||
|
||||
console.log('Inspecting module:');
|
||||
console.dir(module.exports);
|
||||
|
||||
console.log('\nAll exports exposed:');
|
||||
console.error(Object.keys(module.exports));
|
19
node_modules/pkginfo/examples/multiple-properties.js
generated
vendored
Normal file
19
node_modules/pkginfo/examples/multiple-properties.js
generated
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
/*
|
||||
* multiple-properties.js: Sample of including multiple properties from a package.json file
|
||||
*
|
||||
* (C) 2011, Charlie Robbins
|
||||
*
|
||||
*/
|
||||
|
||||
var util = require('util'),
|
||||
pkginfo = require('../lib/pkginfo')(module, 'version', 'author');
|
||||
|
||||
exports.someFunction = function () {
|
||||
console.log('some of your custom logic here');
|
||||
};
|
||||
|
||||
console.log('Inspecting module:');
|
||||
console.dir(module.exports);
|
||||
|
||||
console.log('\nAll exports exposed:');
|
||||
console.error(Object.keys(module.exports));
|
22
node_modules/pkginfo/examples/object-argument.js
generated
vendored
Normal file
22
node_modules/pkginfo/examples/object-argument.js
generated
vendored
Normal file
@ -0,0 +1,22 @@
|
||||
/*
|
||||
* object-argument.js: Sample of including specific properties from a package.json file
|
||||
* using Object argument syntax.
|
||||
*
|
||||
* (C) 2011, Charlie Robbins
|
||||
*
|
||||
*/
|
||||
|
||||
var util = require('util'),
|
||||
pkginfo = require('../lib/pkginfo')(module, {
|
||||
include: ['version', 'author']
|
||||
});
|
||||
|
||||
exports.someFunction = function () {
|
||||
console.log('some of your custom logic here');
|
||||
};
|
||||
|
||||
console.log('Inspecting module:');
|
||||
console.dir(module.exports);
|
||||
|
||||
console.log('\nAll exports exposed:');
|
||||
console.error(Object.keys(module.exports));
|
10
node_modules/pkginfo/examples/package.json
generated
vendored
Normal file
10
node_modules/pkginfo/examples/package.json
generated
vendored
Normal file
@ -0,0 +1,10 @@
|
||||
{
|
||||
"name": "simple-app",
|
||||
"description": "A test fixture for pkginfo",
|
||||
"version": "0.1.0",
|
||||
"author": "Charlie Robbins <charlie.robbins@gmail.com>",
|
||||
"keywords": ["test", "fixture"],
|
||||
"main": "./index.js",
|
||||
"scripts": { "test": "vows test/*-test.js --spec" },
|
||||
"engines": { "node": ">= 0.4.0" }
|
||||
}
|
19
node_modules/pkginfo/examples/single-property.js
generated
vendored
Normal file
19
node_modules/pkginfo/examples/single-property.js
generated
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
/*
|
||||
* single-property.js: Sample of including a single specific properties from a package.json file
|
||||
*
|
||||
* (C) 2011, Charlie Robbins
|
||||
*
|
||||
*/
|
||||
|
||||
var util = require('util'),
|
||||
pkginfo = require('../lib/pkginfo')(module, 'version');
|
||||
|
||||
exports.someFunction = function () {
|
||||
console.log('some of your custom logic here');
|
||||
};
|
||||
|
||||
console.log('Inspecting module:');
|
||||
console.dir(module.exports);
|
||||
|
||||
console.log('\nAll exports exposed:');
|
||||
console.error(Object.keys(module.exports));
|
11
node_modules/pkginfo/examples/subdir/package.json
generated
vendored
Normal file
11
node_modules/pkginfo/examples/subdir/package.json
generated
vendored
Normal file
@ -0,0 +1,11 @@
|
||||
{
|
||||
"name": "simple-app-subdir",
|
||||
"description": "A test fixture for pkginfo",
|
||||
"version": "0.1.0",
|
||||
"author": "Charlie Robbins <charlie.robbins@gmail.com>",
|
||||
"keywords": ["test", "fixture"],
|
||||
"main": "./index.js",
|
||||
"scripts": { "test": "vows test/*-test.js --spec" },
|
||||
"engines": { "node": ">= 0.4.0" },
|
||||
"subdironly": "true"
|
||||
}
|
20
node_modules/pkginfo/examples/target-dir.js
generated
vendored
Normal file
20
node_modules/pkginfo/examples/target-dir.js
generated
vendored
Normal file
@ -0,0 +1,20 @@
|
||||
/*
|
||||
* multiple-properties.js: Sample of including multiple properties from a package.json file
|
||||
*
|
||||
* (C) 2011, Charlie Robbins
|
||||
*
|
||||
*/
|
||||
|
||||
var util = require('util'),
|
||||
path = require('path'),
|
||||
pkginfo = require('../lib/pkginfo')(module, { dir: path.resolve(__dirname, 'subdir' )});
|
||||
|
||||
exports.someFunction = function () {
|
||||
console.log('some of your custom logic here');
|
||||
};
|
||||
|
||||
console.log('Inspecting module:');
|
||||
console.dir(module.exports);
|
||||
|
||||
console.log('\nAll exports exposed:');
|
||||
console.error(Object.keys(module.exports));
|
Reference in New Issue
Block a user