https://github.com/xiaozhu2007/bing-indexnow
:fire: This is a Node.js module for submitting your sitemap to Bing's IndexNow service. 这是一个 Node.js 模块,用于将站点地图提交到 Bing 的 IndexNow 服务。
https://github.com/xiaozhu2007/bing-indexnow
bing bing-indexnow indexnow nodejs npm-package sitemap
Last synced: 5 months ago
JSON representation
:fire: This is a Node.js module for submitting your sitemap to Bing's IndexNow service. 这是一个 Node.js 模块,用于将站点地图提交到 Bing 的 IndexNow 服务。
- Host: GitHub
- URL: https://github.com/xiaozhu2007/bing-indexnow
- Owner: xiaozhu2007
- License: mit
- Created: 2024-10-27T10:50:19.000Z (7 months ago)
- Default Branch: master
- Last Pushed: 2024-10-27T11:20:37.000Z (7 months ago)
- Last Synced: 2024-11-29T18:08:39.393Z (6 months ago)
- Topics: bing, bing-indexnow, indexnow, nodejs, npm-package, sitemap
- Language: JavaScript
- Homepage:
- Size: 8.79 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
⭐️ Your Star is very important for me!# Bing IndexNow Sitemap Submission 🌟
This is a Node.js module for submitting your sitemap to Bing's IndexNow service.
## Installation 📦
```bash
npm install @xiaozhu2007/bing-indexnow
```
## Usage 🚀You need to provide your own Bing IndexNow API key when calling the `submitSitemapToBing` function:
```js
const { submitSitemapToBing } = require('@xiaozhu2007/bing-indexnow');// Replace with your Bing IndexNow API key
const apiKey = 'your-api-key-here';// Replace with your sitemap URL
const sitemapUrl = 'https://example.com/sitemap.xml';submitSitemapToBing(sitemapUrl, apiKey)
.then(() => console.log('Sitemap submitted successfully.'))
.catch(err => console.error('Failed to submit sitemap:', err));
```
## Contribution 🤝If you have any questions or suggestions, feel free to open an Issue or submit a Pull Request. Thanks for your contribution!
## License 📄
This project is licensed under the **MIT License**. See the [LICENSE](LICENSE) file for details.