Initial Commit.
This commit is contained in:
commit
8fdc302ac6
|
|
@ -0,0 +1 @@
|
|||
node_modules/
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
printWidth: 80
|
||||
tabWidth: 4
|
||||
singleQuote: true
|
||||
useTabs: false
|
||||
trailingComma: none
|
||||
bracketSpacing: true
|
||||
jsxBracketSameLine: true
|
||||
parser: babylon
|
||||
semi: true
|
||||
requirePragma: false
|
||||
proseWrap: always
|
||||
|
|
@ -0,0 +1,22 @@
|
|||
MIT License
|
||||
|
||||
Copyright (c) 2018 David Diaz<seich@martianwabbit.com>
|
||||
|
||||
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.
|
||||
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
# Beau Standard Plugin Library
|
||||
|
||||
beau-std is a set of basic plugins for Beau. These plugins are automatically
|
||||
loaded if available. They are mostly mapping nodejs functions most people would
|
||||
normally use in Beau.
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
class STD {
|
||||
constructor(registry) {
|
||||
const FileSystem = require('./plugins/fileSystem.js');
|
||||
new FileSystem(registry);
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = STD;
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
const fs = require('fs');
|
||||
|
||||
class FileSystem {
|
||||
constructor(registry) {
|
||||
registry.defineDynamicValue('createReadStream', fs.createReadStream);
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = FileSystem;
|
||||
File diff suppressed because it is too large
Load Diff
|
|
@ -0,0 +1,26 @@
|
|||
{
|
||||
"name": "beau-std",
|
||||
"version": "0.9.0",
|
||||
"description": "General purpose Beau plugins.",
|
||||
"main": "./lib/index.js",
|
||||
"scripts": {
|
||||
"test": "jest"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/seich/beau-std.git"
|
||||
},
|
||||
"keywords": [
|
||||
"beau"
|
||||
],
|
||||
"author": "David Diaz",
|
||||
"license": "MIT",
|
||||
"bugs": {
|
||||
"url": "https://github.com/seich/beau-std/issues"
|
||||
},
|
||||
"homepage": "https://github.com/seich/beau-std#readme",
|
||||
"dependencies": {},
|
||||
"devDependencies": {
|
||||
"jest": "^22.4.3"
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue