Skip to content
Guess character encoding in your filenames
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs/images
tests/fixtures
LICENSE
README.md
fnbuild.sh
fndec.go Output {file} 'type' alongside encoding May 27, 2018

README.md

fndec

Created for Artefactual Systems Inc.

Guess filename encodings... based on @richardlehane's characterize golang package.

Get up and running

Install and update dependencies:
go get -u

Run release script (if you are creating releases for multiple platforms):
bash fndec.sh

Otherwise run go build or go install to create a single binary on your machine. The binary will be created in the current folder or $GOBIN.

Run command (or create alias):
path/to/release/your-release-version -file path/to/filename

Binaries

A handful of binaries for different operating systems are created on release and are available here: https://github.com/exponential-decay/fndec/releases/latest

Usage

    ross-spencer@artefactual:~:$ fndec -h
    Usage of fndec:
      -file string
    	    File to read the filename from.
      -version
    	    Return version information.

Example output

alt text

You can’t perform that action at this time.