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

720

Maintainers

lores-bbclores-bbcemma-moodieemma-moodiegoswat01goswat01zahidz01zahidz01ashrau01ashrau01lokesh_srinivasalokesh_srinivasaandrewc0617andrewc0617kierankellyspyrosoftkierankellyspyrosoftgozcue01-bbcgozcue01-bbccodedbypaulcodedbypauldas-partnerdas-partnerrodger-threlfallrodger-threlfallcatherine_hprcatherine_hprkarim-sprkarim-sprsekhar01sekhar01naivinh.ta.bbcnaivinh.ta.bbctalal-adnantalal-adnangrace_alagaratnamgrace_alagaratnamfergusreidbbcfergusreidbbcpallavisharmabbcpallavisharmabbcgingertonicstgingertonicstmichaelmrnmichaelmrnbhartn01bhartn01rtholmes96rtholmes96liamcannnliamcannnbbcjlbbcjlchris.andrews05chris.andrews05mint-dewitmint-dewitamitch07amitch07tom-cowardtom-cowardhconway24hconway24kelvininukbbckelvininukbbcphillbbcphillbbcdale-waterworthdale-waterworthlbird96lbird96lauramihai-bbclauramihai-bbcsinghn08singhn08reeda06reeda06vlee.bbcvlee.bbchannah-slaterhannah-slaterlukeparker02lukeparker02notten13notten13foxk13foxk13archibaldersonarchibaldersonjfsbbcjfsbbcshrey-glashrey-glaszpytfire-bbcszpytfire-bbcalexa_salexa_sbridga03bridga03pjlangleypjlangleypererr03pererr03glorhie99glorhie99roopashree-ramachandraiahroopashree-ramachandraiahjibberjimbbcjibberjimbbcjemmapjemmapvinodranevinodraneteyahbdteyahbdshahp07shahp07cameronsabudabbccameronsabudabbcmattwright-bbcmattwright-bbcjmegmanjmegmanmomahboobianmomahboobianchrisjmuddchrisjmuddbrooklyn-bbcbrooklyn-bbcdavidkopcokdavidkopcokrosie.inmanrosie.inmanbrianbayesbrianbayespeterrichmondbbcpeterrichmondbbcduncan-corps-bbcduncan-corps-bbcchaitanyajjchaitanyajjjadhav02jadhav02bensegnibbcbensegnibbcsmithd24smithd24elliottnewtonbbcelliottnewtonbbcanthonyporthouseanthonyporthousegiacomobggiacomobgtiposupporttiposupportmichellebbcmichellebbcashwinrdnashwinrdnglennalcockglennalcockmianhassanimianhassanirbtwrbtwishaaqiqbalishaaqiqbalmerhaymerhayosada.paranaliyanageosada.paranaliyanageshawnhardernhipposhawnhardernhippoeobreobrsofiadionisiosofiadionisiodavid.toluhidavid.toluhichriss901chriss901pshaw03pshaw03lokh01lokh01nirerr01nirerr01nendhruvnendhruvrichard_gilpinrichard_gilpinpaulybpaulybed.guccioneed.guccionemessage-keepermessage-keeperfelicityrcfelicityrccraigatcraigatkatharinaschulzkatharinaschulzfuzzyjessfuzzyjessrlfbbcrlfbbcken.barnettken.barnettcolinr2colinr2darkoa01darkoa01anthonygoodchildanthonygoodchildbbc-cicdguild-machineuserbbc-cicdguild-machineuserrlam0rlam0hine24hine24milkywaynian-bbcmilkywaynian-bbcmathieuloutremathieuloutredavidsolsonapuertasdavidsolsonapuertassunnybbcsunnybbcwssystems-integrationwssystems-integrationajrobzajrobzanatdeanbeebanatdeanbeebtzaman76tzaman76tomwieck2tomwieck2jamese00jamese00fahad-s75fahad-s75tdoukinitsastdoukinitsasghazif03ghazif03mesenmesenndbbcndbbcyonglexuyonglexusan-raisan-rainenehbnenehbchrisorrickbbcchrisorrickbbcbrotherkaifbrotherkaiflaitangbbclaitangbbcakumac01akumac01ktalagaktalagabbc-sounds-offproductbbc-sounds-offproductabrarkayabrarkaywillsidlebbcwillsidlebbcy.milliony.millioncraigjwrightcraigjwrightbevand10bevand10sbeck1sbeck1ridwan_devridwan_devabdu01abdu01vidhya09vidhya09kirbyc02kirbyc02carlaslatterycarlaslatterylcheffernanlcheffernanalexshelleyalexshelleysadia-taznimsadia-taznimrichag04richag04dannymeloydannymeloyjpark0224jpark0224michaelmccoymichaelmccoyabz.meabz.mekasunmadushankakasunmadushankakieranjoycekieranjoycejamesscarboroughjamesscarboroughfrankj05frankj05dannydaviesbbcdannydaviesbbcjcablejcablestephenlovellstephenlovellsgoudhamsgoudhamnathjoycenathjoyceespirn01espirn01glenndavidsonbbcglenndavidsonbbcjamesdesqjamesdesqhelen_morrishelen_morriscdorrian871cdorrian871olssod02olssod02imran.haidryimran.haidryjonathan-gillespiejonathan-gillespieazineh2023azineh2023aliciagrandjeanaliciagrandjeanbbc-tv-open-sourcebbc-tv-open-sourcelaura01laura01rosemcnallyrosemcnallyiulia.bukhvalovaiulia.bukhvalovahjerlinghjerlingfelixmercermossfelixmercermossmatt-harris-bbcmatt-harris-bbcpeterc89peterc89tsadlerbbctsadlerbbcaabbabaraabbabarkatyasakatyasacallap03callap03chris.darlastonchris.darlastonwhitew02whitew02tcsquaredtcsquareddwalker487dwalker487holladholladorforn01orforn01amitsavantamitsavantnorrib01norrib01jakepointingjakepointingllouisetaylorbbcllouisetaylorbbccharlie-cowan-bbccharlie-cowan-bbcrobbmcquistonrobbmcquistonjames.bungayjames.bungaygloandcogloandcoalbertlobbcalbertlobbcwelshl02welshl02fglover84fglover84yoshihirokasaharayoshihirokasaharahafsa-abdulsalimhafsa-abdulsalimabicoeabicoejonyardleyjonyardleyshaquillaevelynshaquillaevelynfalko189falko189fullerlee-bbcfullerlee-bbccheunm01cheunm01clairelittler-bbcclairelittler-bbcrichhildyardrichhildyardigorisolomonigorisolomontomnuttallbbctomnuttallbbcbbcparfaitbbcparfaitgarwod01garwod01inkenhenneinkenhennearnvshukla89arnvshukla89davidayooladavidayooladavid-boydelldavid-boydellmarta.martimarta.martiallena61allena61priyal2024priyal2024caeseribrahimcaeseribrahimtampie85tampie85ben.bagley.bbcben.bagley.bbctamsingreentamsingreenaaronkenyonaaronkenyonmnharrisonmnharrisonmadamotmadamotuk-ummeuk-ummejkordekbbcjkordekbbcdoladdoladsmugpiesmugpieshanthichaitanyashanthichaitanyabiguzc01biguzc01silidsilidtariqatiatariqatiam-mafenim-mafenimarktaylorbbcmarktaylorbbcronanmockettronanmocketthangbbchangbbcryanmcbbcryanmcbbcridwanchoridwanchoglediatorglediatorlantana-alilantana-aliashtuckbbcashtuckbbcj616s-bbcj616s-bbcken0310ken0310mangrjuimangrjuijakub.gjakub.godonnellbbcodonnellbbcnpmbsnpmbsteju_jakkiteju_jakkigavyn_bbcgavyn_bbcyusuf963myusuf963mjoshuacaddyjoshuacaddyamelialloydbbcamelialloydbbcgeorge-brookegeorge-brookemknishmknishj-e-borehamj-e-borehambozziebozzieluke01455luke01455michael_mulgrewmichael_mulgrewjrew-bbcjrew-bbcandyj-bbcandyj-bbctmocotmocoizzy-pickeringizzy-pickeringajitsanto09ajitsanto09bad-horse-bbcbad-horse-bbcolivia-p-mooreolivia-p-moorejsheriffbbcjsheriffbbcsubhathirarengarajsubhathirarengarajshez-bbcshez-bbcryanwaudbyryanwaudbyamritbbcamritbbcriver-bbcriver-bbcm-al-maarym-al-maaryguptaa01guptaa01allybeeballybeebjpeutherer1jpeutherer1sframptonsframptonsuzanna_kwongsuzanna_kwongallbuttergallbuttergkatie.frostkatie.frostjackhoggbbcjackhoggbbcvaughr03vaughr03graham-armstrong-bbcgraham-armstrong-bbcrussellbroughtonrussellbroughtontomchamberlainuktomchamberlainukmathkeehanmathkeehandio-pdio-panderb08anderb08cattranfieldcattranfieldabd.el-aziz.extabd.el-aziz.extdaniel.ochieng.extdaniel.ochieng.extmaxwec01maxwec01bbc_ivanalvarezbbc_ivanalvarezdeepaakhildeepaakhilsimm90simm90award2022award2022iuketayloriuketaylormatthewtaylorworkmatthewtaylorworkjamiebower185jamiebower185alexchestersbbcalexchestersbbcshoba15shoba15lazzaa01lazzaa01benjwheelerbenjwheelerlexedwardsbbclexedwardsbbcgeoffbbcgeoffbbcyavor-atanasovyavor-atanasovs-zaid-ss-zaid-sbradleyphippsbradleyphippszaintahirbbczaintahirbbcroberp05roberp05garydaviesgarydaviescarrejoe3carrejoe3dataforce-jenkinsdataforce-jenkinscobair01cobair01gavinwright292gavinwright292andysteadbbcandysteadbbcovsichtiovsichtisimonpittsimonpittclaydelasclaydelasdo0g.bbcdo0g.bbcmattbbcmattbbcfeglese_bbcfeglese_bbcandywebb2-bbcandywebb2-bbccjewell47cjewell47chibbcchibbckavbis066kavbis066fahad-75fahad-75edembbcedembbcchalikovchalikovsamgjwsamgjwmacgll01macgll01eloiseceloisecurbanm13urbanm13wormab01wormab01nicholasgriffin_bbcnicholasgriffin_bbcwoodp11woodp11sevisariisiksevisariisikdaniel.helendaniel.helenstevensamsstevensamsalistair.gempfalistair.gempfbbc-delivery-engineeringbbc-delivery-engineeringsheilab6sheilab6jonpbbcjonpbbcbennuttallbennuttallkmurphy3377kmurphy3377johnnewmanjohnnewmanchris-s-thompsonchris-s-thompsonryanmckennabbcryanmckennabbcbbc-voice-pipelinebbc-voice-pipelinesimon_taylorsimon_taylordrrobharperdrrobharperjodiw_bbcjodiw_bbchowelr03howelr03peteslomanpeteslomanjohnsn27johnsn27olivierhuinbbcolivierhuinbbcparticipation-jenkinsparticipation-jenkinsbillt-bbcbillt-bbcayu-idjajaayu-idjajasgospodinovsgospodinovcharliercharliertonymcbethtonymcbethmagdalena.glancmagdalena.glancrichardfeltonrichardfeltonjezbur-bbcjezbur-bbcchalfordchalfordrobfarrrobfarrsilver-jenkinssilver-jenkinsliam.jenkinsonliam.jenkinsonrisheet_thanki_bbcrisheet_thanki_bbcmartmarmamartmarmatimasplintimasplinmdtbuildmdtbuildcps-supportcps-supportbelloro_bbcbelloro_bbcbbcdjbbcdjwillcottwillcottstephegn_bbcstephegn_bbcbbc-web-corebbc-web-corebbc-adminbbc-adminiplayer-web-jenkinsiplayer-web-jenkinsarunbhari11arunbhari11lokih_lokih_cathawkercathawkerpatelj03patelj03padmavathi.tatavartypadmavathi.tatavartyramkup01ramkup01aggari01aggari01matthewcardmatthewcardtomhobbsbbctomhobbsbbcsmiths124smiths124daniel-baileydaniel-baileyandycharrisandycharrissamcausersamcauserclarkb12clarkb12jack_mcpolandjack_mcpolandwilldahlgreenwilldahlgreenthomsonpthomsonpbbcbsdbbcbsdonlyonehasonlyonehasbbc-cloudengbbc-cloudengmcmanj04mcmanj04rthompson1991rthompson1991neha0508neha0508sbasonsbasonjezhodgesbbcjezhodgesbbclewerlewersteven-bbcsteven-bbcbbc-news-jenkinsbbc-news-jenkinsbenjaa14benjaa14craigjcraigjtarqwyntarqwynchrisn-bbcchrisn-bbcnjh-bbcnjh-bbcsimongregorysimongregorymarkturnermarkturnerpetra-atpetra-atiplayerradio-awsiplayerradio-awsmonsaimonsaisubsidelsubsidelbbcrdbbcrddanmdanmrbryerrbryerjamesreedjamesreedwyellwyelljim-johnson-rollingsjim-johnson-rollingsstephenrobertsbbcstephenrobertsbbcskillc01skillc01dan.thomsonbbcdan.thomsonbbcpcs-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-isiteadamxaadamxamatt-rhys-jones-bbcmatt-rhys-jones-bbcscottjarvisscottjarvismarcburrowsmarcburrowschrismarsdenchrismarsdenneilcraigneilcraigeagerterrier_bbceagerterrier_bbcawalsh90awalsh90anthonygreenanthonygreengel-jenkinsgel-jenkinsmiket_bbcmiket_bbcdarrenlucas.bbcdarrenlucas.bbcrozgonyiovarozgonyiovaiblibljana345jana345jlsorakjlsorakabigaelabigaeltom-wrtom-wrraulfuentesraulfuentesdaramaguiredaramaguiremark.howittmark.howitteamonnsullivaneamonnsullivansamirichardsonsamirichardsonhenrywarnehenrywarneshumphreyshumphreyhannahdaddhannahdaddbeckytravbeckytravkerrynscrivenkerrynscrivensport-web-jenkinssport-web-jenkinskcoyle-bbckcoyle-bbcadama03adama03daniel.ellisdaniel.ellisbbcconnectionsbbcconnectionsiain-bbciain-bbcwilsoh58wilsoh58timhewitttimhewittbrittvarnombrittvarnomashcleaveashcleavelydiamoolydiamooyoudyyoudyben_newcombeben_newcombeoliviadruryoliviadrurybbc-gnl-cibbc-gnl-cibbc-morphbbc-morphseancarrollseancarrolldavidbuckhurstdavidbuckhurstitv-ci-machineitv-ci-machineaudienceplatformdevaudienceplatformdevbbc-archivesearch-development-teambbc-archivesearch-development-teamjonathanballsjonathanballssounds-web-jenkinssounds-web-jenkinsobriet04obriet04mikeybykermikeybykerbbc-onlinebbc-onlinecisnkycisnkydustin-bbcdustin-bbcrmsdevrmsdevalasdairstalkeralasdairstalkerjackrmjackrmdwaleesdwaleestomfranciswinningtontomfranciswinningtonthomam67thomam67locator-deploylocator-deployrolandosorbellirolandosorbellijordanholtjordanholtmartysaintymartysaintymassimuramassimurarachael-waddingtonrachael-waddingtongarthcogarthcoandrewscfcandrewscfcchatbnchatbnchriskaychriskaymckayj07mckayj07nickshanksnickshankshextenhextenevebullochevebullochamnpmamnpmlaura94laura94dudardudarcoderkindcoderkindgw8gw8karen_ckaren_cleobsleobsnerosivanerosivalanaceriselanaceriseandywandywfmsupp03fmsupp03fostukfostukleedriscollleedriscollabigailgabigailgnicolabuckhurstnicolabuckhurstacarlson0000acarlson0000education-jenkinseducation-jenkinsallishultesallishulteskeithcrooksbbckeithcrooksbbclawrencep_bbcrdlawrencep_bbcrdleedoughtyleedoughtyandyrobinson01andyrobinson01blundj02blundj02sgrobisonsgrobisonlukedeightonlukedeightonbinhbuibinhbuiinsyn-jenkinsinsyn-jenkinskite-jenkinskite-jenkinsdaniel_brown_bbcdaniel_brown_bbcwaindc01waindc01hanleg03hanleg03bjorn_twachtmannbjorn_twachtmanntasiotasioemupatrolemupatroljonpollardbbcjonpollardbbchellap01hellap01bbc-fatimabbc-fatimaangelinalblythangelinalblythcardl01cardl01decygdecygsalmah95salmah95kamara.bennettkamara.bennettkevin.mackaykevin.mackaypmaudsleypmaudsleyinti0inti0bbcrd-artifactorybbcrd-artifactoryparwiz_sharifiparwiz_sharifigarethjdaviesgarethjdaviesdavidthorpebbcdavidthorpebbcnorrid02norrid02priyapolinenipriyapolinenithomaspreecebbcthomaspreecebbcjason.leemingjason.leemingcaporp01caporp01nanbobnanbobswatitabibswatitabibianarundaleianarundaleshaziashaziabeethechangebeethechangesteve_culverwellsteve_culverwellmattowenukmattowenukaaronmooreaaronmoore56yards56yardssimontannersimontannermilkywaynianmilkywaynianalexjn15alexjn15assizpereiraassizpereiraiplayer-pc-downloads-pipeline-botiplayer-pc-downloads-pipeline-botchrispnicholsonchrispnicholsonbbc-search-and-navigationbbc-search-and-navigationusmanbuildsusmanbuildsstuart_jennings_bbcstuart_jennings_bbcjacobprycejacobprycemattgreenhammattgreenhamcv-bbccv-bbcrobcattrobcattnewslabs-jenkinsnewslabs-jenkinsjoshcoventryjoshcoventrydave.at.bbcdave.at.bbcsarahrainbowsarahrainbowfarahjabrifarahjabridavid.verbenyidavid.verbenyiresist01resist01

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)