Skip to content

daurnimator/lua-psl

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
doc
 
 
psl
 
 
 
 
 
 
 
 
 
 
 
 
 
 

lua-psl

Bindings to libpsl, a C library that handles the Public Suffix List (PSL).

The PSL is a list of domains where there may be sub-domains outside of the administrator's control. e.g. the administrator of '.com' does not manage 'github.com'.

This list has found use in many internet technologies including:

  • preventing cross-domain cookie leakage
  • allowance of issuing wildcard TLS certificates

More information can be found at publicsuffix.org

Documentation

Can be found at https://daurnimator.github.io/lua-psl/

Features

  • Compatible with Lua 5.1, 5.2, 5.3, 5.4 and LuaJIT

Status

  • This project was started in late 2016
  • Binds all functions available from libpsl up to the 0.19 release

Installation

It's recommended to install lua-psl by using luarocks.

$ luarocks install psl

Dependencies

For running tests

Development

Getting started

  • Clone the repo:

    $ git clone https://github.com/daurnimator/lua-psl.git
    $ cd lua-psl
    
  • Install your local copy:

    $ luarocks make psl-scm-0.rockspec
    
  • Run tests (install tools first)

    $ busted
    

Generating documentation

Documentation is written in markdown and intended to be consumed by pandoc. See the doc/ directory for more information.