Socket
Socket
Sign inDemoInstall

aspell

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    aspell

A module that parses aspell output.


Version published
Weekly downloads
129
decreased by-8.51%
Maintainers
1
Install size
6.03 kB
Created
Weekly downloads
 

Readme

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

FAQs

Last updated on 25 May 2023

Did you know?

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc