Skip to content

🔥 This is a Node.js module for submitting your sitemap to Bing's IndexNow service. 这是一个 Node.js 模块,用于将站点地图提交到 Bing 的 IndexNow 服务。

License

Notifications You must be signed in to change notification settings

xiaozhu2007/bing-indexnow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

bing-indexnow



⭐️ 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 📦

npm install @xiaozhu2007/bing-indexnow

Usage 🚀

You need to provide your own Bing IndexNow API key when calling the submitSitemapToBing function:

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 file for details.

About

🔥 This is a Node.js module for submitting your sitemap to Bing's IndexNow service. 这是一个 Node.js 模块,用于将站点地图提交到 Bing 的 IndexNow 服务。

Topics

Resources

License

Stars

Watchers

Forks