- Add Strike API credentials configuration - Implement Strike node with 9 resources (Account, Balance, Currency Exchange, Deposit, Invoice, Payment, Payment Method, Payout, Rates) - Add comprehensive operation descriptions for all resources - Include CLAUDE.MD documentation - Set up build configuration with TypeScript, ESLint, and Prettier 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
22 lines
541 B
JavaScript
22 lines
541 B
JavaScript
'use strict';
|
|
var path = require('path');
|
|
var fs = require('graceful-fs');
|
|
var stripBom = require('strip-bom');
|
|
var parseJson = require('parse-json');
|
|
var Promise = require('pinkie-promise');
|
|
var pify = require('pify');
|
|
|
|
function parse(x, fp) {
|
|
return parseJson(stripBom(x), path.relative(process.cwd(), fp));
|
|
}
|
|
|
|
module.exports = function (fp) {
|
|
return pify(fs.readFile, Promise)(fp, 'utf8').then(function (data) {
|
|
return parse(data, fp);
|
|
});
|
|
};
|
|
|
|
module.exports.sync = function (fp) {
|
|
return parse(fs.readFileSync(fp, 'utf8'), fp);
|
|
};
|