Skip to content

Commit 2860a1c

Browse files
Merge pull request #204 from NitroPack/nitropack
Add detector for NitroPack
2 parents 3135bb2 + 04997c1 commit 2860a1c

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ supports:
8787
- [Mustache](http://mustache.github.io/)
8888
- [Next.js](https://nextjs.org/)
8989
- [Next.js (Fast path)](https://nextjs.org/)
90+
- [NitroPack](https://nitropack.io/)
9091
- [Numeral.js](http://numeraljs.com/)
9192
- [Nuxt.js](https://nuxtjs.org/)
9293
- [Nuxt.js (Fast path)](https://nuxtjs.org/)

icons/nitropack.png

2.11 KB
Loading

library/libraries.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1945,5 +1945,19 @@ var d41d8cd98f00b204e9800998ecf8427e_LibraryDetectorTests = {
19451945
}
19461946
return false;
19471947
}
1948+
},
1949+
'NitroPack': {
1950+
id: 'nitropack',
1951+
icon: 'nitropack',
1952+
url: 'https://nitropack.io/',
1953+
npm: null,
1954+
test: async function (win) {
1955+
const nitroPackGenerator = !!document.querySelector('meta[name="generator"][content="NitroPack"]');
1956+
1957+
if ( nitroPackGenerator ) {
1958+
return { version: UNKNOWN_VERSION };
1959+
}
1960+
return false;
1961+
}
19481962
}
19491963
};

0 commit comments

Comments
 (0)