package
Metalsmith plugin to grab content from the web and expose the results to metadata
npm install metalsmith-requestGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
Metalsmith plugin to grab content from the web and expose the results to metadata
uses got under the hood to make HTTP calls.
npm install metalsmith-requestPass targets to the plugin with the use method:
metalsmith.use(request({ target: 'http://domain.com/foo' }))You can also pass options as the second argument to use with the got module
const targets = {
foo: 'http://domain.com/foo.json'
}
const options = {
responseType: true
}
metalsmith.use(request(targets, options))You can also use the plugin with the Metalsmith CLI by adding a key to your metalsmith.json file:
{
"plugins": {
"metalsmith-request": {
"foo": "http://domain.com/foo.json"
}
}
}Author: Ahmad Nassri • Twitter: @AhmadNassri
Estimated unpacked size across 19 packages.
2.2 MB
Includes dependencies.