Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

A simple CLI tool to fetch resources from any website.

License

NotificationsYou must be signed in to change notification settings

debanshup/savesrc

Repository files navigation

savesrc is a command-line tool that dynamically fetches and saves various resources (like HTML documents, JavaScript files, CSS stylesheets, and images) from a specified webpage.

Features

  • Process HTML Documents: Fetch and save HTML documents.
  • Process JavaScript Files: Fetch and save JavaScript files.
  • Process CSS Stylesheets: Fetch and save CSS stylesheets.
  • Process Images: Fetch and save images from the webpage.
  • Process All Resources: Fetch and save all supported resource types.

Installation

  • npm install -g savesrc

Usage

Basic Commands

  • Process HTML Documents:

    savesrc -d
  • Process JavaScript Files:

    savesrc -s
  • Process CSS Stylesheets:

    savesrc -st
  • Process Images:

    savesrc -im
  • Process All Supported Resources (Default):

    savesrc -a

Options

OptionDescription
-d, --documentProcess HTML documents
-s, --scriptProcess JavaScript files
-st, --styleProcess CSS stylesheets
-im, --imageProcess images
-a, --allProcess all supported resource types (default)
-v, --versionShow version information
-h, --helpDisplay help message

Examples

  • Process only HTML documents:

    savesrc -d"http://example.com"
  • Process JavaScript and CSS files:

    savesrc -s -st"http://example.com"
  • Process all resource types (default):

    savesrc -a"http://example.com"

    or

    savesrc"http://example.com"

License

This project is licensed under the ISC License. See theLICENSE file for details.

Contributing

Contributions are welcome! Feel free to submit a Pull Request. See theCONTRIBUTING section for more details.

Contact

For any inquiries or issues, please reach out todebanshupanigrahi53605@gmail.com.

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp