
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
grunt-html2ts
Advanced tools
Create typescript string templates for html files.
This plugin requires Grunt.
If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:
npm install grunt-html2ts --save-dev
Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
grunt.loadNpmTasks('grunt-html2ts');
In your project's Gruntfile, add a section named html2ts
to the data object passed into grunt.initConfig()
.
grunt.initConfig({
html2ts: {
options: {
// Task-specific options go here.
},
your_target: {
// Target-specific file lists and/or options go here.
},
},
})
Type: String
Default value: null
A string that is truncated from the start of the generated typescript module namespace.
Type: String
Default value: null
A string that is truncated from the start of the generated output path when the htmlOutDir option is specified.
Type: String
Default value: null
If specified the typescript will be generated starting in this directory.
Type: Boolean
Default value: false
If true all the generated typescript will be in the output directory rather than in a copy of the original directory hierarchy.
In this example, all html files matching test/app/**/*.html
will be transformed into typescript files with a copy of the original directory hierarchy into the test/.out
directory.
grunt.initConfig({
html2ts: {
default: {
options: {
truncateNamespace: 'test',
truncateDir: 'test/app',
htmlOutDir: 'test/.out',
flatten: false
},
files: {
options: ['test/app/**/*.html']
}
}
},
})
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt.
(Nothing yet)
Copyright (c) 2015 Bernd Wessels. Licensed under the MIT license.
FAQs
Create typescript string templates for html files.
The npm package grunt-html2ts receives a total of 0 weekly downloads. As such, grunt-html2ts popularity was classified as not popular.
We found that grunt-html2ts demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.