Research
Security News
Kill Switch Hidden in npm Packages Typosquatting Chalk and Chokidar
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
grunt-assemble-sitemap
Advanced tools
Sitemap plugin for Assemble
Install with npm:
$ npm install --save grunt-assemble-sitemap
Register the plugin in your assemble config:
assemble: {
options: {
plugins: ['grunt-assemble-sitemap', 'other/plugins/*']
}
}
Visit the plugins docs for more info or for help getting started.
See sitemaps.org for detail XML tag definitions.
Type: String
Default: undefined
Sitemap destination. If not set, fallback to assemble destination.
Type: String
Default: homepage
(from package.json)
Site URL
Type: String
Default: weekly
How frequently the page is likely to change. This value provides general information to search engines and may not correlate exactly to how often they crawl the page. Valid values are:
Type: Float
Default: 0.5
The priority of this URL relative to other URLs on your site. Valid values range from 0.0 to 1.0. This value does not affect how your pages are compared to pages on other sites—it only lets the search engines know which pages you deem most important for the crawlers.
Type: Array
Default: ['404']
Pages to omit from the sitemap.
options: {
sitemap: {
exclude: ["foo", "bar"],
},
files: {
...
}
}
Type: String
/ Boolean
Default: false
Path to which the URLs in Sitemap and Robots should be relative to. true
is equal to the destination path dest
and false
is equal to the root directory.
Type: String
Default: sitemap.xml
If you have a master sitemap that references sub-sitemaps, use this feature. For example static-sitemap.xml
Type: Boolean
Default: true
Generate robots.txt from exclusions
list.
Type: Boolean
Default: false
When generating a sitemap with directory indexes, use pretty urls by removing index
path segments from http://www.example.com/directory/index.html
to to create http://www.example.com/directory/
To simplify might do something like:
assemble: {
blog: {
options: {
plugins: ['grunt-assemble-sitemap'],
},
files: {
'./blog/': ['./templates/blog/*.hbs']
}
}
}
./blog/sitemap.xml
./blog/robots.txt
assemble: {
blog: {
options: {
plugins: ['grunt-assemble-sitemap'],
sitemap: {
homepage: 'http://assemble.io',
changefreq: 'daily',
priority: '0.8',
exclude: ['50x', 'foo'],
robot: false
}
},
files: {
'./blog/': ['./templates/blog/*.hbs']
}
}
}
./blog/sitemap.xml
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
Commits | Contributor |
---|---|
64 | hariadi |
11 | doowb |
7 | rauberdaniel |
7 | hgoebl |
2 | jonschlinkert |
1 | quartzmo |
1 | jarrodconnolly |
1 | Melindrea |
1 | olegsmetanin |
2017-03-16 v0.2.6
option.basename
to specify the basename of the output file. Defaults to sitemap.xml
.option.pretty
to remove index.html
from paths.2014-05-31 v0.2.5
2014-05-31 v0.2.4
2014-05-02 v0.2.3
2014-03-25 v0.2.2
2014-02-20 v0.2.1
2014-02-04 v0.2.0
2014-02-01 v0.1.9
2014-01-27 v0.1.8
2014-01-02 v0.1.7
2013-12-11 v0.1.6
2013-11-27 v0.1.4
2013-10-19 v0.1.3
2013-10-17 v0.1.2
2013-10-16 v0.1.1
2013-09-30 v0.1.0
(This project's readme.md is generated by verb, please don't edit the readme directly. Any changes to the readme must be made in the .verb.md readme template.)
To generate the readme, run the following command:
$ npm install -g verbose/verb#dev verb-generate-readme && verb
Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:
$ npm install && npm test
Hariadi Hinta
Copyright © 2017, Hariadi Hinta. Released under the MIT License.
This file was generated by verb-generate-readme, v0.4.3, on March 17, 2017.
FAQs
Sitemap plugin for Assemble
The npm package grunt-assemble-sitemap receives a total of 4 weekly downloads. As such, grunt-assemble-sitemap popularity was classified as not popular.
We found that grunt-assemble-sitemap demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.