*Initial port to typescript

This commit is contained in:
Derrick Hammer 2022-09-21 14:15:14 -04:00
parent 05122154b3
commit 82dddc75cf
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
8 changed files with 1053 additions and 1251 deletions

View File

@ -1,6 +1,6 @@
This software is licensed under the MIT License. This software is licensed under the MIT License.
Copyright (c) 2017, Christopher Jeffrey (https://github.com/chjj) Copyright (c) 2017, Christopher Jeffrey (https://github.com/chjj), 2022 Hammer Technologies LLC
Permission is hereby granted, free of charge, to any person obtaining a copy Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal of this software and associated documentation files (the "Software"), to deal

View File

@ -1,9 +0,0 @@
/*!
* bcfg.js - configuration parsing for bcoin
* Copyright (c) 2016-2017, Christopher Jeffrey (MIT License).
* https://github.com/bcoin-org/bcoin
*/
'use strict';
module.exports = require('./config');

File diff suppressed because it is too large Load Diff

View File

@ -1,3 +0,0 @@
'use strict';
exports.unsupported = true;

View File

@ -1,3 +0,0 @@
'use strict';
module.exports = require('fs');

View File

@ -1,19 +1,12 @@
{ {
"name": "bcfg", "name": "@lumeweb/cfg",
"version": "0.1.7", "version": "0.1.7",
"description": "Config parser for bcoin",
"keywords": [
"conf",
"config"
],
"license": "MIT", "license": "MIT",
"repository": "git://github.com/bcoin-org/bcfg.git", "authors": [
"homepage": "https://github.com/bcoin-org/bcfg", "Christopher Jeffrey <chjjeffrey@gmail.com>",
"bugs": { "Hammer Technologies LLC <contact@lumeweb.com>"
"url": "https://github.com/bcoin-org/bcfg/issues" ],
}, "main": "dist/index.js",
"author": "Christopher Jeffrey <chjjeffrey@gmail.com>",
"main": "./lib/bcfg.js",
"scripts": { "scripts": {
"lint": "eslint lib/ || exit 0", "lint": "eslint lib/ || exit 0",
"test": "bmocha --reporter spec test/*-test.js" "test": "bmocha --reporter spec test/*-test.js"
@ -22,12 +15,6 @@
"bsert": "~0.0.10" "bsert": "~0.0.10"
}, },
"devDependencies": { "devDependencies": {
"bmocha": "^2.1.0" "@types/node": "^18.7.18"
},
"engines": {
"node": ">=8.0.0"
},
"browser": {
"./lib/fs": "./lib/fs-browser.js"
} }
} }

1022
src/index.ts Normal file

File diff suppressed because it is too large Load Diff

12
tsconfig.json Normal file
View File

@ -0,0 +1,12 @@
{
"compilerOptions": {
"module": "commonjs",
"target": "esnext",
"sourceMap": true,
"esModuleInterop": true
},
"include": ["src"],
"exclude": [
"node_modules"
]
}