![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
bse-api-package
Advanced tools
A Node.js package to fetch data from the Bombay Stock Exchange (BSE).
BSE-API-PACKAGE is a Node.js library that facilitates downloading and extracting ZIP files containing Bhavcopy (trading data) from the Bombay Stock Exchange (BSE) website.
Install the package via npm:
npm install bse-api-package
const BSEDownloader = require('bse-api-package');
const downloader = new BSEDownloader();
const outputDir = '/path/to/your/output/directory';
downloader.downloadTodayData(outputDir)
.then(success => {
if (success) {
console.log('Downloaded and extracted ZIP for today');
} else {
console.log('Failed to download or extract ZIP for today');
}
})
.catch(error => {
console.error('Error:', error.message);
});
const outputDir = '/path/to/your/output/directory';
const date =new Date('2023-05-27');
downloader.downloadForDate(date, outputDir)
.then(success => {
if (success) {
console.log('Downloaded and extracted ZIP for today');
} else {
console.log('Failed to download or extract ZIP for today');
}
});
const outputDir = '/path/to/your/output/directory';
const startDate = new Date('2023-06-27');
const endDate = new Date('2023-06-30');
downloader.downloadDataForDateRange(startDate, endDate, outputDir)
.then(success => {
if (success) {
console.log(`Downloaded and extracted ZIP files between ${startDate} and ${endDate}`);
} else {
console.log(`Failed to download or extract ZIP files between ${startDate} and ${endDate}`);
}
})
.catch(error => {
console.error('Error:', error.message);
});
downloadTodayData(outputDir: string): Promise<boolean>
Downloads and extracts the Bhavcopy ZIP file for today's date.
outputDir
: The directory path where the extracted files will be saved.downloadForDate(date: Date,outputDir: string): Promise<boolean>
Downloads and extracts the Bhavcopy ZIP file for given date.
outputDir
: The directory path where the extracted files will be saved.downloadDataForDateRange(startDate: Date, endDate: Date, outputDir: string): Promise<boolean>
Downloads and extracts Bhavcopy ZIP files for a date range.
startDate
: The start date (inclusive) of the date range.endDate
: The end date (inclusive) of the date range.outputDir
: The directory path where the extracted files will be saved.This project is licensed under the MIT License - see the LICENSE file for details.
Installation: Provides instructions on how to install the package using npm.
Features: Lists the main features of the BSE-API-PACKAGE package.
Usage: Demonstrates how to import the module, use methods to download and extract ZIP files, and handle success or failure callbacks.
API Documentation: Detailed documentation for each method, including parameters and return types.
License: Information about the licensing of the package.
You can adjust the paths, error handling, and logging as per your specific application requirements. This README.md file should provide a clear guide for users on how to install, use, and understand your BSE-API-PACKAGE package. Adjust the examples and descriptions based on any additional functionality or customization you provide in your library.
This is only for study purpose
FAQs
A Node.js package to fetch data from the Bombay Stock Exchange (BSE).
The npm package bse-api-package receives a total of 0 weekly downloads. As such, bse-api-package popularity was classified as not popular.
We found that bse-api-package demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.