npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@bbc/apache2-license-checker

v1.1.4

Published

Automated license checker for validating project dependencies for compatable Apache2 licenses.

Downloads

484

Maintainers

bbc-voice-pipelinebbc-voice-pipelineglorhie99glorhie99rtholmes96rtholmes96simon_taylorsimon_taylordrrobharperdrrobharperjodiw_bbcjodiw_bbchowelr03howelr03peteslomanpeteslomanbhartn01bhartn01johnsn27johnsn27olivierhuinbbcolivierhuinbbcparticipation-jenkinsparticipation-jenkinsbillt-bbcbillt-bbcayu-idjajaayu-idjajasgospodinovsgospodinovcharliercharliertonymcbethtonymcbethmagdalena.glancmagdalena.glancrichardfeltonrichardfeltonjezbur-bbcjezbur-bbcchalfordchalfordrobfarrrobfarrsilver-jenkinssilver-jenkinsliam.jenkinsonliam.jenkinsonrisheet_thanki_bbcrisheet_thanki_bbcmartmarmamartmarmatimasplintimasplinmdtbuildmdtbuildcps-supportcps-supportbelloro_bbcbelloro_bbcpererr03pererr03smugpiesmugpiedoladdoladbbcdjbbcdjwillcottwillcottstephegn_bbcstephegn_bbcbbc-web-corebbc-web-corefrankj05frankj05jamesscarboroughjamesscarboroughdaniel.ochieng.extdaniel.ochieng.extmknishmknishlcheffernanlcheffernanbbc-adminbbc-adminiplayer-web-jenkinsiplayer-web-jenkinssbasonsbasonjezhodgesbbcjezhodgesbbclewerlewersteven-bbcsteven-bbcbbc-news-jenkinsbbc-news-jenkinsbenjaa14benjaa14craigjcraigjabdu01abdu01tarqwyntarqwynlaura01laura01cattranfieldcattranfieldpjlangleypjlangleysadia-taznimsadia-taznimchrisn-bbcchrisn-bbcalexshelleyalexshelleykieranjoycekieranjoycekasunmadushankakasunmadushankaabz.meabz.memichaelmccoymichaelmccoyjpark0224jpark0224dannymeloydannymeloyrichag04richag04carlaslatterycarlaslatterynjh-bbcnjh-bbcsimongregorysimongregorynicholasgriffin_bbcnicholasgriffin_bbcmarkturnermarkturnerpetra-atpetra-atiplayerradio-awsiplayerradio-awsmonsaimonsaisubsidelsubsidelbbcrdbbcrddanmdanmrbryerrbryerjamesreedjamesreedwyellwyellbozziebozziejim-johnson-rollingsjim-johnson-rollingsstephenrobertsbbcstephenrobertsbbchafsa-abdulsalimhafsa-abdulsalimfahad-75fahad-75bridga03bridga03smiths124smiths124skillc01skillc01dan.thomsonbbcdan.thomsonbbcallybeeballybeebpcs-amp-jenkinspcs-amp-jenkinsmark.irelandmark.irelandmedia-playout-jenkinsmedia-playout-jenkinschrisowenchrisowenbbc-cd-jenkinsbbc-cd-jenkinslangtonmlangtonmpartner-platform-jenkinspartner-platform-jenkinsapi-management-jenkinsapi-management-jenkinsweather-jenkinsweather-jenkinsbbc-isitebbc-isiteadamxaadamxawormab01wormab01urbanm13urbanm13matt-rhys-jones-bbcmatt-rhys-jones-bbcmichaelmrnmichaelmrnscottjarvisscottjarvismarcburrowsmarcburrowsedembbcedembbcchrismarsdenchrismarsdenneilcraigneilcraigeagerterrier_bbceagerterrier_bbcawalsh90awalsh90eloiseceloisecmacgll01macgll01anthonygreenanthonygreengel-jenkinsgel-jenkinssamgjwsamgjwchalikovchalikovluke01455luke01455miket_bbcmiket_bbcdarrenlucas.bbcdarrenlucas.bbcrozgonyiovarozgonyiovaiblibljana345jana345tomhobbsbbctomhobbsbbcjlsorakjlsorakabigaelabigaelvidhya09vidhya09tom-wrtom-wrmatthewcardmatthewcardraulfuentesraulfuentesdaramaguiredaramaguiremark.howittmark.howitteamonnsullivaneamonnsullivansamirichardsonsamirichardsonhenrywarnehenrywarneshumphreyshumphreyhannahdaddhannahdaddbeckytravbeckytravkerrynscrivenkerrynscrivensport-web-jenkinssport-web-jenkinskirbyc02kirbyc02kcoyle-bbckcoyle-bbcadama03adama03daniel.ellisdaniel.ellisbbcconnectionsbbcconnectionsiain-bbciain-bbcj-e-borehamj-e-borehamwilsoh58wilsoh58abd.el-aziz.extabd.el-aziz.exttimhewitttimhewittbrittvarnombrittvarnomashcleaveashcleavelydiamoolydiamooyoudyyoudyben_newcombeben_newcombeoliviadruryoliviadrurybbc-gnl-cibbc-gnl-cibbc-morphbbc-morphseancarrollseancarrolldavidbuckhurstdavidbuckhurstitv-ci-machineitv-ci-machineaudienceplatformdevaudienceplatformdevbbc-archivesearch-development-teambbc-archivesearch-development-teamjonathanballsjonathanballssounds-web-jenkinssounds-web-jenkinsmaxwec01maxwec01obriet04obriet04mikeybykermikeybykerbbc-onlinebbc-onlinecisnkycisnkydustin-bbcdustin-bbcalexa_salexa_srmsdevrmsdevalasdairstalkeralasdairstalkerjackrmjackrmdwaleesdwaleestomfranciswinningtontomfranciswinningtonthomam67thomam67locator-deploylocator-deployrolandosorbellirolandosorbellijordanholtjordanholtmartysaintymartysaintymassimuramassimurarachael-waddingtonrachael-waddingtongarthcogarthcoandrewscfcandrewscfcchatbnchatbnchriskaychriskaymckayj07mckayj07nickshanksnickshankshextenhextenevebullochevebullochlaura94laura94dudardudarcoderkindcoderkindgw8gw8karen_ckaren_camnpmamnpmleobsleobsnerosivanerosivalanaceriselanaceriseandywandywfmsupp03fmsupp03fostukfostukleedriscollleedriscollabigailgabigailgnicolabuckhurstnicolabuckhurstacarlson0000acarlson0000education-jenkinseducation-jenkinsallishultesallishulteskeithcrooksbbckeithcrooksbbclawrencep_bbcrdlawrencep_bbcrdleedoughtyleedoughtyandyrobinson01andyrobinson01blundj02blundj02sgrobisonsgrobisonlukedeightonlukedeightonbinhbuibinhbuiinsyn-jenkinsinsyn-jenkinskite-jenkinskite-jenkinsdaniel_brown_bbcdaniel_brown_bbcwaindc01waindc01hanleg03hanleg03bjorn_twachtmannbjorn_twachtmannemupatrolemupatroljonpollardbbcjonpollardbbchellap01hellap01bbc-fatimabbc-fatimaangelinalblythangelinalblythcardl01cardl01abrarkayabrarkaydecygdecygsalmah95salmah95kamara.bennettkamara.bennettkevin.mackaykevin.mackaypmaudsleypmaudsleyinti0inti0bbcrd-artifactorybbcrd-artifactoryparwiz_sharifiparwiz_sharifigarethjdaviesgarethjdaviesdavidthorpebbcdavidthorpebbccheunm01cheunm01norrid02norrid02priyapolinenipriyapolinenithomaspreecebbcthomaspreecebbcjason.leemingjason.leemingcaporp01caporp01nanbobnanbobswatitabibswatitabibianarundaleianarundaleshaziashaziabeethechangebeethechangeridwan_devridwan_devsteve_culverwellsteve_culverwellwillsidlebbcwillsidlebbcy.milliony.millionmattowenukmattowenuksbeck1sbeck1bevand10bevand10craigjwrightcraigjwrightanderb08anderb08szpytfire-bbcszpytfire-bbcguptaa01guptaa01aaronmooreaaronmoore56yards56yardssimontannersimontannermilkywaynianmilkywaynianrussellbroughtonrussellbroughtonalexjn15alexjn15assizpereiraassizpereirashrey-glashrey-glageorge-brookegeorge-brookeiplayer-pc-downloads-pipeline-botiplayer-pc-downloads-pipeline-botchrispnicholsonchrispnicholsonamelialloydbbcamelialloydbbcbbc-search-and-navigationbbc-search-and-navigationjfsbbcjfsbbcarchibaldersonarchibaldersonusmanbuildsusmanbuildsstuart_jennings_bbcstuart_jennings_bbcjacobprycejacobprycemattgreenhammattgreenhamcv-bbccv-bbcrobcattrobcattnewslabs-jenkinsnewslabs-jenkinsjoshcoventryjoshcoventrybbc-sounds-offproductbbc-sounds-offproductdave.at.bbcdave.at.bbcsarahrainbowsarahrainbowfarahjabrifarahjabridavid.verbenyidavid.verbenyiresist01resist01ryanmckennabbcryanmckennabbcchris-s-thompsonchris-s-thompsonshoba15shoba15matthewtaylorworkmatthewtaylorworkroberp05roberp05geoffbbcgeoffbbcandysteadbbcandysteadbbcclarkb12clarkb12feglese_bbcfeglese_bbccarrejoe3carrejoe3johnnewmanjohnnewmans-zaid-ss-zaid-samritbbcamritbbcgarydaviesgarydavieslexedwardsbbclexedwardsbbckmurphy3377kmurphy3377bennuttallbennuttallsimonpittsimonpittthomsonpthomsonpjonpbbcjonpbbcbradleyphippsbradleyphippsmadamotmadamotsheilab6sheilab6bbc-delivery-engineeringbbc-delivery-engineeringalistair.gempfalistair.gempfmattbbcmattbbcalexchestersbbcalexchestersbbcstevensamsstevensamsyavor-atanasovyavor-atanasovbenjwheelerbenjwheelerneha0508neha0508rthompson1991rthompson1991jamiebower185jamiebower185claydelasclaydelaschibbcchibbccjewell47cjewell47mcmanj04mcmanj04bbc-cloudengbbc-cloudengsamcausersamcauserjack_mcpolandjack_mcpolandonlyonehasonlyonehasben.bagley.bbcben.bagley.bbcgavinwright292gavinwright292zaintahirbbczaintahirbbcbbcbsdbbcbsddaniel-baileydaniel-baileygingertonicstgingertonicstdio-pdio-pmathkeehanmathkeehanwilldahlgreenwilldahlgreendaniel.helendaniel.helennenehbnenehbsevisariisiksevisariisikwoodp11woodp11andywebb2-bbcandywebb2-bbcdo0g.bbcdo0g.bbccobair01cobair01tomchamberlainuktomchamberlainuklazzaa01lazzaa01ovsichtiovsichtidataforce-jenkinsdataforce-jenkinsandycharrisandycharrisjoshuacaddyjoshuacaddykavbis066kavbis066iuketayloriuketaylorpallavisharmabbcpallavisharmabbcaward2022award2022tamsingreentamsingreensimm90simm90tmocotmocodeepaakhildeepaakhilktalagaktalagasan-raisan-rairyanwaudbyryanwaudbybbc_ivanalvarezbbc_ivanalvarezandyj-bbcandyj-bbcsubhathirarengarajsubhathirarengarajjsheriffbbcjsheriffbbcndbbcndbbcmangrjuimangrjuiyusuf963myusuf963mgavyn_bbcgavyn_bbcmesenmesenbad-horse-bbcbad-horse-bbcyonglexuyonglexuizzy-pickeringizzy-pickeringgraham-armstrong-bbcgraham-armstrong-bbcshez-bbcshez-bbcolivia-p-mooreolivia-p-moorevaughr03vaughr03jackhoggbbcjackhoggbbcm-al-maarym-al-maarykatie.frostkatie.frostuk-ummeuk-ummeajitsanto09ajitsanto09teju_jakkiteju_jakkiallbuttergallbuttergnpmbsnpmbsfergusreidbbcfergusreidbbcodonnellbbcodonnellbbcsuzanna_kwongsuzanna_kwongfoxk13foxk13fullerlee-bbcfullerlee-bbcsframptonsframptonghazif03ghazif03river-bbcriver-bbcmnharrisonmnharrisonaaronkenyonaaronkenyonbrotherkaifbrotherkaifnotten13notten13jakub.gjakub.ggrace_alagaratnamgrace_alagaratnamtalal-adnantalal-adnanjkordekbbcjkordekbbcjpeutherer1jpeutherer1j616s-bbcj616s-bbcken0310ken0310sekhar01sekhar01ashtuckbbcashtuckbbclukeparker02lukeparker02chrisorrickbbcchrisorrickbbctampie85tampie85akumac01akumac01padmavathi.tatavartypadmavathi.tatavartycaeseribrahimcaeseribrahimjrew-bbcjrew-bbcramkup01ramkup01karim-sprkarim-sprnaivinh.ta.bbcnaivinh.ta.bbccatherine_hprcatherine_hprmichael_mulgrewmichael_mulgrewaggari01aggari01laitangbbclaitangbbcshaquillaevelynshaquillaevelynlantana-alilantana-alimilkywaynian-bbcmilkywaynian-bbcglediatorglediatorridwanchoridwanchocodedbypaulcodedbypaulhine24hine24arnvshukla89arnvshukla89ryanmcbbcryanmcbbcpriyal2024priyal2024liamcannnliamcannnronanmockettronanmocketthangbbchangbbcmarktaylorbbcmarktaylorbbcallena61allena61marta.martimarta.martidavid-boydelldavid-boydelldavidayooladavidayoolam-mafenim-mafenitariqatiatariqatiasilidsilidbiguzc01biguzc01shanthichaitanyashanthichaitanyakelvininukbbckelvininukbbcnendhruvnendhruvinkenhenneinkenhennehconway24hconway24rodger-threlfallrodger-threlfallanatdeanbeebanatdeanbeebtom-cowardtom-cowardjamese00jamese00garwod01garwod01bbcparfaitbbcparfaittomnuttallbbctomnuttallbbcajrobzajrobzpatelj03patelj03bbc-cicdguild-machineuserbbc-cicdguild-machineuserigorisolomonigorisolomoncathawkercathawkercolinr2colinr2hannah-slaterhannah-slaterrichhildyardrichhildyardrlfbbcrlfbbcvlee.bbcvlee.bbcmessage-keepermessage-keeperdarkoa01darkoa01jonyardleyjonyardleylauramihai-bbclauramihai-bbcabicoeabicoelbird96lbird96clairelittler-bbcclairelittler-bbcfalko189falko189reeda06reeda06ed.guccioneed.guccionesinghn08singhn08dale-waterworthdale-waterworthyoshihirokasaharayoshihirokasaharaamitch07amitch07fglover84fglover84welshl02welshl02albertlobbcalbertlobbcgloandcogloandcopaulybpaulybwssystems-integrationwssystems-integrationlokih_lokih_james.bungayjames.bungayrobbmcquistonrobbmcquistonmint-dewitmint-dewitrlam0rlam0fuzzyjessfuzzyjesscharlie-cowan-bbccharlie-cowan-bbctomwieck2tomwieck2chris.andrews05chris.andrews05tdoukinitsastdoukinitsasrichard_gilpinrichard_gilpinfahad-s75fahad-s75bbcjlbbcjlkatharinaschulzkatharinaschulzcraigatcraigatsunnybbcsunnybbcdas-partnerdas-partnerllouisetaylorbbcllouisetaylorbbcfelicityrcfelicityrcdavidsolsonapuertasdavidsolsonapuertasjakepointingjakepointingphillbbcphillbbclokh01lokh01norrib01norrib01bbc-tv-open-sourcebbc-tv-open-sourcenirerr01nirerr01anthonygoodchildanthonygoodchildarunbhari11arunbhari11ken.barnettken.barnetttzaman76tzaman76mathieuloutremathieuloutrechaitanyajjchaitanyajjchrisjmuddchrisjmuddmomahboobianmomahboobianshawnhardernhipposhawnhardernhippoglenndavidsonbbcglenndavidsonbbcpshaw03pshaw03chriss901chriss901olssod02olssod02david.toluhidavid.toluhibensegnibbcbensegnibbcduncan-corps-bbcduncan-corps-bbcpeterrichmondbbcpeterrichmondbbcsofiadionisiosofiadionisioamitsavantamitsavantjmegmanjmegmanosada.paranaliyanageosada.paranaliyanagesgoudhamsgoudhamjadhav02jadhav02orforn01orforn01holladholladnathjoycenathjoyceashwinrdnashwinrdnazineh2023azineh2023jonathan-gillespiejonathan-gillespieimran.haidryimran.haidryhelen_morrishelen_morrisbrianbayesbrianbayesmichellebbcmichellebbcespirn01espirn01stephenlovellstephenlovellgiacomobggiacomobgtiposupporttiposupportmerhaymerhayishaaqiqbalishaaqiqbalanthonyporthouseanthonyporthouseelliottnewtonbbcelliottnewtonbbcmianhassanimianhassanijcablejcablesmithd24smithd24rbtwrbtweobreobrglennalcockglennalcockcdorrian871cdorrian871rosie.inmanrosie.inmandannydaviesbbcdannydaviesbbcjamesdesqjamesdesqbrooklyn-bbcbrooklyn-bbcaliciagrandjeanaliciagrandjeanteyahbdteyahbdmattwright-bbcmattwright-bbccameronsabudabbccameronsabudabbcvinodranevinodraneshahp07shahp07jibberjimbbcjibberjimbbcjemmapjemmaproopashree-ramachandraiahroopashree-ramachandraiahdwalker487dwalker487tcsquaredtcsquaredwhitew02whitew02chris.darlastonchris.darlastoncallap03callap03katyasakatyasaaabbabaraabbabartsadlerbbctsadlerbbcpeterc89peterc89matt-harris-bbcmatt-harris-bbcfelixmercermossfelixmercermosshjerlinghjerlingiulia.bukhvalovaiulia.bukhvalovarosemcnallyrosemcnallygozcue01-bbcgozcue01-bbckierankellyspyrosoftkierankellyspyrosoftandrewc0617andrewc0617lokesh_srinivasalokesh_srinivasaashrau01ashrau01zahidz01zahidz01goswat01goswat01emma-moodieemma-moodielores-bbclores-bbcangel_mariaangel_mariaagurenciks-bbcagurenciks-bbcyellowbendyyellowbendyflomptyflomptytaggaj01taggaj01amathmamathmmstephensonbbcmstephensonbbcats-delivery-jenkins-userats-delivery-jenkins-userdaviskdavisksarahp06sarahp06karlamayebbckarlamayebbcjameswilsonbbcjameswilsonbbcdanielhoughbbcdanielhoughbbcntbbcntbbcmarinos-papamichaelmarinos-papamichaellewisbellwoodlewisbellwoodyasins02yasins02keithwhittamkeithwhittamdanielcampbellbbcdanielcampbellbbcmurraymcalpinemurraymcalpineharshapatankarbbcharshapatankarbbc

Keywords

Readme

Apache2 License Checker

Automated license checker for validating project dependencies for compatible Apache2 licenses.

Use with your project

  • Run npm install @bbc/apache2-license-checker --save-dev
  • Modify your package.json to include apache2-license-checker as part of your test script

For example:

...
  "scripts": {
    "test": "mocha && npm run check-licenses",
    "check-licenses": "apache2-license-checker"
  },
...

The license checker will fail with an exit code of 1 if there are any problems with the license, and will pass with an exit code of 0 if all checks are ok.

A temporary file licenses.json will be created containing a full license analysis based on output from the license-checker tool. You will probably want to .gitignore this file.

Creating Exceptions

If the license checker throws errors, and you've verified the errors as acceptable risks, then you may want to create an exceptions file in your local project. For example:

license-exceptions.json

{
  "exceptions": {
    "cosmos-deploy@*": {
      "reason": "Not required, acceptable use for BBC internal deployments"
    },
    "[email protected]": {
      "reason": "Public Domain; see: https://github.com/dscape/cycle/"
    },
    "[email protected]": {
      "reason": "MIT License; see: https://github.com/dominictarr/map-stream"
    },
    "[email protected]": {
      "reason": "Public Domain; see https://github.com/faisalman/ua-parser-js"
    }
  }
}

Development

To support

  • Check out the code
  • Run npm install
  • Run npm test

Modify scripts/whitelist.js to allow additional licenses or license combinations.

Modify scripts/exceptions.js to allow specific modules for a given reason.

Please push to a branch and raise a pull request, or fork and do the same.

Example output

In normal usage running npm run check-licenses produces an output similar to:

Acceptable project licenses (uses):
  (MIT AND CC-BY-3.0) (1)
  Apache-2.0 (3)
  BSD-2-Clause (1)
  BSD-3-Clause (1)
  ISC (15)
  MIT (23)
  Unlicense (1)
  WTFPL (1)

Acceptable project license exceptions:
  [email protected]
    Reason: Not required, acceptable use for BBC internal deployments
  [email protected]
    Reason: Public Domain; see: https://github.com/dscape/cycle/
  [email protected]
    Reason: MIT License; see: https://github.com/dominictarr/map-stream

All licenses ok Licensed (46) Exceptions (0) Problems (0)

If there is a problem with the licenses, then expect an output similar to:

Acceptable project licenses (uses):
  Apache-2.0 (3)
  BSD-2-Clause (1)
  BSD-3-Clause (1)
  CC-BY-3.0 (1)
  CC0-1.0 (1)
  ISC (16)
  MIT (25)

Acceptable project license exceptions:
  [email protected]
    Reason: Public Domain; see https://github.com/kemitchell/spdx-exceptions.json

Problems with the licenses for these dependencies:
  [email protected]
    License:     CC0-1.0
    Repository:  https://github.com/shinnn/spdx-license-ids
    Publisher:   Shinnosuke Watanabe
    Url:         https://github.com/shinnn


Licenses not ok Licensed (46) Exceptions (1) Problems (1)