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

@elvispereira/fvtt-parser

v2.5.0

Published

A small utility to convert Foundry VTT packs from ndjson to plain json files, or structured babele translation files

Downloads

19

Readme

Discord invite js-semistandard-style GPL-3.0-only version

Português

English version below

Essa pequena ferramente permite gerar arquivos json a partir dos packs do Foundry VTT. O arquivo final pode ser um simples json com o conteúdo do pack ou então um arquivo de tradução que pode ser interpretado pelo Babele.

Instalação

Você pode instalar essa ferramenta utilizando o npm ou yarn, basta executar os passos a seguir.

npm

npm i @elvis-pereira/fvtt-parser

yarn

yarn add @elvis-pereira/fvtt-parser

Modo de usar

Uma vez instalado você pode utilizar o comando fvttp para começar a gerar os arquivos.

Exemplo fvttp --path packs/classes.db --babele true

Opções

--path ou -p

O caminho para a pasta ou arquivo a ser convertido, essa é a única opção obrigatória.

--ext ou -e

A extensão dos arquivos que devem ser convertidos, só tem efeito quando uma pasta é passada como caminho, .db por padrão.

--save ou -s

Caminho onde o arquivo convertido vai ser salvo, se for omitido uma pasta chamada output sera criada e os arquivos serão salvos nela.

--babele ou -b

Boleano, informa se o arquivo deve ou não ser convertido em um arquivo de tradução para o Babele, false por padrão se for omitido.

--mapping ou -m

Arquivo contendo mapeamentos customizados a serem usados na conversão, o mapeamento padrão é o mesmo do Babele, se omitido assume a presença de um arquivo chamado mapping.json na raiz do projeto que sera usado caso exista.

--use-name ou -n

Boleano, determina se serão os nomes ou ID's como chaves para entradas do arquivo de tradução, false por padrão se for omitido (Usa ID's).

--no-items ou -i

Boleano, determina se os items contidos por um ator devem ou não ser incluídos no arquivo de tradução, se omitido os items não são incluídos.


English

This small tool allows you to generate json files from Foundry VTT packs. The final file can be a simple json with the contents of the pack or a translation file that can be interpreted by Babele.

Installation

You can install this tool using npm or yarn, just perform the following steps.

npm

npm i @elvis-pereira/fvtt-parser

yarn

yarn add @elvis-pereira/fvtt-parser

Usage

Once installed you can use the fvttp command to start generating the files.

Example fvttp --path packs/classes.db --babele true

Options

--path or -p

The path to the folder or file to be converted, this is the only required option.

--ext or -e

The extension of the files to be converted, only takes effect when a folder is passed as a path, .db by default.

--save or -s

Path where the converted file will be saved, if a folder called output is omitted it will be created and the files will be saved in it.

--babele or -b

Boolean, tells whether or not the file should be converted into a Babele translation file, false by default if omitted.

--mapping or -m

File containing custom mappings to be used in the conversion, the default mapping is the same as Babele's, if omitted it assumes the presence of a file called mapping.json at the root of the project that will be used if it exists.

--use-name or -n

Boolean, determines whether to use names or ID's as keys for translation file entries, false by default if omitted (Use ID's).

--no-items or -i

Boolean, determines whether or not items contained by an actor should be included in the translation file, if omitted items are not included.