Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vue-htmlize

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-htmlize - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

img/beforeafter.webp

7

index.js

@@ -14,4 +14,8 @@ const fs = require('fs')

htmlize.generateHTMLs( router.getRoutes() )
htmlize.generateHtaccess( )
},
cmdRun( ){
const p = path.resolve("htmlize/routes.js");
const routes = require( p )
htmlize.generateHTMLs( routes )
},
completeMissingFolders( route ){

@@ -65,2 +69,3 @@ for(const [ index, part ] of route.path.split("/").entries()){

generateHTMLs( routes ){
htmlize.generateHtaccess( )
const pathes = htmlize.config.ignore.map( p => { return path.resolve( htmlize.config.dist, p ) })

@@ -67,0 +72,0 @@ pathes.push( path.resolve( htmlize.config.dist ) )

8

package.json
{
"name": "vue-htmlize",
"version": "1.0.3",
"version": "1.0.4",
"description": "Make working OG Tags and SEO in pure Vue projects.",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"test": "echo \"Error: no test specified\" && exit 1",
"vue-htmlize": "echo \" ELO \" ELO "
},

@@ -28,4 +29,5 @@ "repository": {

"dependencies": {
"vue-htmlize": "^1.0.1"
"make-runnable": "^1.4.1",
"vue-htmlize": "^1.0.3"
}
}

@@ -5,44 +5,48 @@ # vue-htmlize

## Get started
### Install
```bash
npm i vue-htmlize
npm i vue-htmlize
```
### Config in vue
In **main.ts** or **main.js** just import vue-htmlize
### Config
- Make folder *htmlize* and create file *routes.js* in it.
```js
import App from './App.vue'
import router from './router'
// You can copy paste here router.getRoutes() from vue router
import htmlize from 'vue-htmlize' // import it
htmlize.byRouter(router) // generate htmls by router
module.exports = [
{
"path": "/projects/anadar",
"name": "anadar",
"meta": {},
const app = createApp(App)
app.use(router)
app.mount('#app')
...
```
### Run
```bash
node -e 'require(\"../index.js\").cmdRun()'
```
### Output
### Options
![beforeafter](/img/beforeafter.webp)
## Contributing
Feel free to contribute at [GitHub](https://github.com/apietryga/vue-htmlize)
<!-- ### EXPERIMENTAL AND TODO:
Few options to setup it for your project
```js
// deletes unused files in public dir [ default : false ]
htmlize.config.clean = true
// deletes unused files in public dir [ default : false ]
htmlize.config.clean = true
// files excluded from deletion [ default : '.htaccess', 'favicon.ico' ]
htmlize.config.ignore = [ '.htaccess', 'favicon.ico', 'img' ]
// files excluded from deletion [ default : '.htaccess', 'favicon.ico' ]
htmlize.config.ignore = [ '.htaccess', 'favicon.ico', 'img' ]
// directory for public files [ default: 'public']
htmlize.config.dist = "public"
// directory for public files [ default: 'public']
htmlize.config.dist = "public"
// html template file to set global options (fonts, css) [ default: "index.html" ]
htmlize.config.template = "index.html"
```
## Contributing
Feel free to contribute at [GitHub](https://github.com/apietryga/vue-htmlize)
// html template file to set global options (fonts, css) [ default: "index.html" ]
htmlize.config.template = "index.html"
``` -->
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc