userscripters / generate-headers Goto Github PK
View Code? Open in Web Editor NEWUserscript header generator
License: GNU General Public License v3.0
Userscript header generator
License: GNU General Public License v3.0
Since 4.15, Tampermonkey uses eslint-plugin-userscripts to validate userscript headers. The docs are here.
It'd be nice if this package used the plugin to lint headers before actually prepending them to the file.
I've been digging through this project to figure out how to use it, but I can't figure it out. If it can generate userscript headers that'd be amazing, but I'd need to know how to use it :P
I use the Parcel bundler to generate my built script. It would be nice if we could prepend the header to this generated file (by specifying the path).
There's been a report that when run in WSL, neither --direct
nor --output
options work at all.
In the default programmatic example, the namespace and homepage are not generated. I tried changing the first input to tampermonkey
, but it doesn't change the result
https://stackapps.com/q/9088/92224
Also, the import seems wrong in Stackoverflow. It should be
import { generate } from "@userscripters/generate-headers/dist/generate"
As per #126 (comment)
Default sort: @name
first, the rest of the headers sorted alphabetically (specifically to avoid deviating from the current behavior)
CLI option name: --sort
for long, likely -s
for short (check if the short option conflicts with any of the existing ones)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.