Skip to content
0aoqPublic

About

Basic page content parsing to replace links with blob urls for resolving relative paths such as "./index.js" or just "index.js"

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Directify

Basic page content parsing to replace links with blob urls for resolving relative paths such as ./index.js or just index.js

  • Attempts to fetch the base url of files under website_url/relative_path
  • Returns replaced body content of searched file, containing replaced urls

Basic Example

// test/index.html (edited)

// init directify
const app = new Directify({
    url: 'https://www.example.com'
})

// log the replaced html to the output
console.log(app.crawl('https://www.example.com/test/index.html'))

Setup

  • Clone repository
  • Run tsc (or npx tsc) command under the root directory (directify)
  • Start local server under the root directory

About

Basic page content parsing to replace links with blob urls for resolving relative paths such as "./index.js" or just "index.js"

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages