Socket
Book a DemoInstallSign in
Socket

aspell

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aspell

A module that parses aspell output.

0.1.1
latest
Source
npmnpm
Version published
Weekly downloads
1
-92.31%
Maintainers
1
Weekly downloads
 
Created
Source

node-aspell

A node.js module that parses aspell output. Aspell is a spell checker.

Currently works with node.js v0.10.1+ (and probably lower).

Examples

const aspell = require("aspell");

const emitter = aspell("spelll chek me"); // Returns event emitter

emitter
	.on("error", function(chunk) { /* ... contents of stderr sent here ... */ })
	.on("result", function(result) {
	/**
		`result` is an object that has a property called "type"

		When "type" equals:
			"ok" -- aspell has encountered a correctly spelled word.
			  Other optional properties:
				- "run-together" -- is true if aspell encounters a compound word
			"misspelling" -- aspell has encountered a misspelled word.
			  Other properties:
				- "word" -- the incorrectly spelled word.
				- "position" -- the character distance from the last line break
				- "alternatives" -- a list of possible corrections
			"comment" -- aspell has return comment.
			  Other properties:
				- "line" -- contains the full comment.
			"line-break" -- aspell has encountered a line break in the input text
			"unknown" -- aspell has return an unsupported control character
	*/
	})
	.on("end", function() { /* ... called when no more results are available ... */ })
;

API

  • require("aspell").args -- Contains a list of arguments that aspell is ran with. By default the list is [ "--run-together" ].

Getting node-aspell

The easiest way to get node-aspell is with npm:

npm install aspell

Alternatively you can clone this git repository:

git clone git://github.com/xavi-/node-aspell.git

Developed by

  • Xavi Ramirez

License

This project is released under The MIT License.

Keywords

aspell

FAQs

Package last updated on 25 May 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.