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

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"
]
}