Copyright | (c) 2019-2020 Vaclav Svejcar |
---|---|
License | BSD-3 |
Maintainer | vaclav.svejcar@gmail.com |
Stability | experimental |
Portability | POSIX |
Safe Haskell | None |
Language | Haskell2010 |
Support for detecting license header in JavaScript source code files.
Synopsis
- headerSizeJS :: Text -> Int
Documentation
headerSizeJS :: Text -> Int Source #
Returns size of license header (as number of lines) in given JS source code. The very first comment block is considered as license header, anything after as start of the actual code.