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

last-parse

v0.0.2

Published

A npm package for handeling your linguistic error and suggest/performs correction. Currently Supporting HTML, EJS, MD and txt files

Downloads

2

Readme

Last-Parse

Last-parse is a versatile package designed to view, suggest corrections, and perform corrections on text content within HTML, EJS, MD and TXT files. Whether you're dealing with grammatical errors, spelling mistakes, or other textual issues, last-parse provides a seamless solution for enhancing your text content.

🔥Disclaimer🔥:

This package will update your file and there is no going back. Thus, snapshot(git) of all file contents is advised

Installation

npm i last-parse

Usage

  • Create a config.last.json file anywhere, preferred root of your project, and modify following properties as you like. Properties not given are taken from default setting.
  • Change package.json. Add script for parse with appropriate destination
  • Execute using npm run parse

config.last.json (default)

// config.last.json
{
    "files": [""],
	"ignoreFolders": ["node_modules", ".git", "lib", "test"],
	"autoReplace": false,
	"languageConfig": "en-US"
}

Config Details:

  • files : Array containing file path. /directory/filePath from current working directory. E.g: files: ["./src/*.html", "/**.txt"]

  • ignoreFolders (doesn't work on glob path) : Array containing file path. /directory/filePath from current working directory. E.g: files: ["./src", "/src/noparse.txt"]

  • autoReplace: boolean value for, well, autoReplacing content without user confirmation.

  • languageConfig: String value representing language to parse. Available-Language [requires longCode]

Changes to package.json

// package.json
    "scripts" : {
           "parse" : "last-parse pathToYourConfig.last.json"
     }

     // E.g:
     "scripts" : {
           "parse" : "last-parse ./"
     }

To Execute: (locally)

npm run parse

To Execute: (globally)

npm i -g last-parse
last-parse [filePath]

Features

  • Use the package manager npm to install last-parse.
  • Supports parsing and correction of text content within HTML, EJS, MD and TXT files.
  • Identifies grammatical errors, spelling mistakes, and other textual issues.
  • Provides suggestions for correcting identified errors.
  • Allows for easy integration into your existing projects.
  • Simple to use, with intuitive functions for parsing and correcting text.

Contributing

*** Star to the Repo is highly appreciated. ***

Provide suggestion by opening an issue. Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT