ccscan

1.1.2 • Public • Published

ccscan

Build status TypeScript 3.5.3

Scan files for credit card numbers

Usage

npx ccscan

Precommit Hook

You can also add ccscan to your project and set it up as a precommit hook that will block any commits that contain card numbers.

Install Dependencies

yarn add --dev ccscan husky lint-staged or npm install -D ccscan husky lint-staged

Add to package.json

"husky"{
  "hooks": {
    "pre-commit": "lint-staged"
  }
},
"lint-staged"{
  "*.{ts,tsx,js}": [
    "ccscan",
    "git add"
  ]
}

Contributing

  1. Fork this repo
  2. Clone the forked repo
  3. Install dependencies: yarn

Building

yarn build

To clean the build directory run yarn clean

Running Tests

yarn test

Publishing

  1. Update the version in package.json
  2. Add a CHANGELOG.md entry
  3. Commit your changes
  4. Run npm pack to see what will be published then delete the .tgz file that was created
  5. Run npm publish
  6. Create a release on GitHub. Use the version as the tag and release name. For example for version 1.0.0 the tag and release name would be v1.0.0.

Dependencies (0)

    Dev Dependencies (21)

    Package Sidebar

    Install

    npm i ccscan

    Weekly Downloads

    3,888

    Version

    1.1.2

    License

    MIT

    Unpacked Size

    399 kB

    Total Files

    29

    Last publish

    Collaborators

    • neo-chris-noble
    • neo-ife-ojikutu
    • neo-will-parker
    • neo-paula-grangeiro
    • gaulford
    • danielafekhume-neo
    • jashish_m
    • neo-lior-ben-shahar
    • neo-diego-nunes
    • tim-neo2
    • antonio.canabrava
    • neo.eduardoyuidy
    • neoricardogcolombo
    • kirstyrobertson
    • neo-oleksandr-yanchenko
    • neo-barry-li
    • desmond-maloney
    • harmeetsalech
    • neo-elgiz-abbasov
    • nikita-syrotenko
    • neo-bclausi
    • dustinn1235
    • neo-prerakkumar-patel
    • neo-peter-spangler
    • neo-rivan-mota
    • neo-daniel-brennan
    • neo-matt-felice
    • neo-rameez-virji
    • matt-armstrong
    • rajanatneo
    • josephma
    • neo-fredy
    • neo-zhaoquan-zhang
    • alejandrogarbi
    • ronellgarcia
    • gui.martins
    • edward.nazarov
    • annakumova
    • leah-is-offline
    • neo-shruti-goyal
    • felipe.minetto
    • neo-kevin-hillard
    • neo-ahmed-jama
    • olgavozniuk
    • tunde-neo
    • neo-shubham-patel
    • biancaballena
    • neo-sacha-cuna
    • jadonduby
    • msalama
    • ani-samajpati-neo
    • ishmeet.rayat
    • neo-bryce-brandford
    • neo-raheel-junaid
    • neo-ricardo-gomez
    • neo-lawrence-liu
    • edwardkruger
    • neobot1
    • neo-dakota-chatt
    • lucasjohannson
    • neo-travis-friesen
    • mike.himbeault-neo
    • raul.ribeiro
    • neo-shraddha
    • anhtranneo
    • lucachamecki
    • amievishwa
    • neo-matias-wengiel
    • ini-a
    • neo-ahmed-seifelnasr
    • rhullyam
    • das-boss
    • kennethcolina
    • feminachacko
    • marvindeleon
    • neo-miguel-castro
    • neo-dione-silva
    • hanna.tkachenko
    • nico-connor
    • roman.mnatsakanian
    • riley-pickerl
    • thomas-llewellyn-neo
    • briancruz
    • amjad-mahfoud-neo
    • neoauderesantos
    • nitin.madan
    • mohpor
    • cghenneneo
    • punit.patel
    • brayden_sc_neo
    • anna_benemanskaia
    • hrishikeshkale
    • kyle-elyk-neo
    • michelepiperni
    • neo-youre_pena
    • neo-michal-kowal
    • niconeiman
    • neodiegobeltran
    • stburke
    • marcelo.matos
    • matheusicaro
    • divanshu
    • maiahneo
    • kimberlytranneo
    • rjberry
    • neo-carlos-pieren
    • mohamedalhammoud
    • neo-hasanpreetsingh
    • irakitnykh
    • jcavalcanti
    • stephanie-wang-neo
    • kaelanneofinancial
    • vinicius-barcelos
    • benx-neo
    • mhowitt-neo
    • malcolm-neo
    • neo-seol-kim
    • brentcam
    • teena_
    • deankim
    • herculesjr
    • matthew.belford
    • rishbar
    • neo-baonguyen
    • caio.andrade
    • scott.wiedemann
    • thomawstrahn
    • luan.le
    • dennisbarthel
    • lavanya.mohan
    • leosbelsotomayor
    • dhruvang
    • neo-rodrigoraval
    • joeljwood
    • nahom-neo
    • stefan.amyotte
    • timothy.couch.neofinancial
    • scottkayeneo
    • omolara
    • ar-ies
    • cjnewman
    • vidalrmrz
    • rnetto46
    • iansu
    • darrenpicard25
    • maxgoo
    • stschmaltz
    • usernameseb
    • eric.zaporzan.neo
    • lucasparreira
    • lewishorwood
    • craigsiemens
    • diegobmy
    • joelsimpson
    • jooh-lee
    • kasrababaei
    • mattlabarre
    • u2v22
    • johnclendvoy
    • demaestro
    • sudeep.sidhu
    • daylan.law
    • neo-stephen
    • neogibson
    • beraki
    • vrochamaaia
    • d_fenniak
    • mato-gallardo
    • adamtranquilla
    • nehasingh1801
    • lucaslongarini
    • erozonachi
    • faddoul
    • lovekesh1
    • pichatelli
    • npoltz-neo