1.3.3 • Published 8 years ago

punc v1.3.3

Weekly downloads
6
License
MIT
Repository
github
Last release
8 years ago

Punc

Read a file, remove the words, see all the punctuations.

image

npm Travis Coverage Status

Installation

npm install punc

Example Usage #1

'use strict'

const Punc = require('./index')

Punc('alice.txt', 'utf8')
  .then(dataFromPunc => console.log(dataFromPunc))
  .catch(error => handleError(error))

Output found: here

Documentation

Please see the wiki.

Features

  1. Read a file, remove words and numbers, do something with the data:
    • data.count: keeps count of every punctuation seen
    • data.body: complete text with letters and numbers replaced with a space-character
    • data.wordCount: calculates the words per sentence average
  2. Generate a PDF file. See how it would look like on e-paper

Notes

  • Punctuations to keep when removing words:

    ; : ' " , ! ? . ( ) -

  • Punctuations to use when counting occurances:

    ; : ' " , ! ? .

Inspiration

this article on medium which was in-turn inspired by this person's work.

License

MIT

Technical dependencies

  • Node platform version: >5.0.0
  • Promises with Bluebird: bluebird ^3.3.1
  • Stream helper with Through2: through2 ^2.0.1
1.3.3

8 years ago

1.3.2

8 years ago

1.3.1

8 years ago

1.2.2

8 years ago

1.2.1

8 years ago

1.1.0

8 years ago

1.0.8

8 years ago

1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

0.0.0

8 years ago

1.0.0

8 years ago