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

@phoenix-plugin-registry/brackets-utf8-converter

v0.1.2

Published

Allows you to convert single files or whole folders (and sufolders) to UTF8. HOW-TO available on GitHub. This project is a fork of Az-Encode, written by Jimmy Brian Anamaria Torres.

Downloads

4

Readme

UTF8 Converter

Brackets extension for encoding files to UTF8 format

(Short) Introduction

First and foremost, this project is a fork of Az-Encode written by Jimmy Brian Anamaria Torres, so, many thanks to him !
At first, I just wanted to update one of the node package, but I need more features, so I decided to extend the original project in order to add what I need, and maybe what others need.
It'll be deprecated once the Brackets' team add support to other file format than UTF8 but... well, who cares ? and since Brackets is a great open-source text editor, it would be too bad to not use it because it can't open (yet) files that aren't encoded using UTF8.

HOW-TO

To install this extension (still under development, you'll have to bear with me), just copy the whole project folder to Brackets extension folder.
You can access this folder from Brackets (Help > Show Extensions Folder).
Next, you'll have to Restart Node from Brackets (Debug > Restart Node) and reload Brackets with extensions (Debug > Reload With Extensions ... or F5).

Once installed, you can right-click on a folder and :

  • click "Detect Encoding".
    It'll navigate through the files (and subfolders - see "Missing features") and display a bottom panel with a list of files and a button to "Convert" each file to UTF8.
    Don't be afraid of losing any of your files, this extension creates a copy of the converted file with a ".utf8" tag added to it (before the extension name, of course).

  • click "Convert to UTF8". It'll convert a whole folder to UTF8 but creating a copy of it and converting everything in it (even subfolders if the settings allow it)

  • click "Encoding Settings" It'll give you a bit of control over the module, you can disable the ability to detect/convert subfolders, or remove the action "Convert to UTF8" if you don't want to do it by mistake.

Ignored files

JSChardet may fails to detect some encoding.
In that case, this extension will (for the moment) ignore the file.

Used packages

Since this project uses some NodeJS packages, let's introduce them !

  • The core of this extension is iconv-lite which handles the conversion.
  • jschardet is also used to provide some information about the encoding.
  • path from nodejs main package

And... that's it !

Features

  • [x] Split functions and modules to separate files
  • [x] Switch to coffeescript (warning : Brackets will work with Javascript only)
  • [x] Ability to dig through files
  • [x] Add preference UI (option to dig [or not] into sub-folders, convert on the fly, ...)
  • [ ] Change bottom panel interface (ie : group files by folders, ...)
  • [x] Ability to convert whole folders (create a copy of that folder with an extension to the name)
  • [x] Ability to detect encoding/convert a single file (Brackets' error message prevent the use of such functionality on unreadable files... still exists just in case)
  • [ ] Add more comments to coffeescripts !
  • [ ] Handle files with no encoding detected (display them in a panel maybe...)

Other features that MAY be added (one day)

  • [ ] React to "UNSUPPORTED_ENCODING_ERR" to provide a way to suggest a conversion (I don't know if it's possible ... gotta check the API)
  • [ ] Work ASYNC