New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

nlcst-affix-emoticon-modifier

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nlcst-affix-emoticon-modifier - npm Package Compare versions

Comparing version 1.1.2 to 1.1.3

license

8

index.js

@@ -7,5 +7,5 @@ 'use strict'

var EMOTICON_NODE = 'EmoticonNode'
var emoticonNode = 'EmoticonNode'
/* Merge emoticons into an `EmoticonNode`. */
// Merge emoticons into an `EmoticonNode`.
function mergeAffixEmoticon(child, index, parent) {

@@ -23,3 +23,3 @@ var children = child.children

if (node.type === EMOTICON_NODE) {
if (node.type === emoticonNode) {
prev = parent.children[index - 1]

@@ -35,3 +35,3 @@

/* Next, iterate over the node again. */
// Next, iterate over the node again.
return index

@@ -38,0 +38,0 @@ }

{
"name": "nlcst-affix-emoticon-modifier",
"version": "1.1.2",
"version": "1.1.3",
"description": "Merge affix emoticons into the previous sentence in NLCST",

@@ -13,5 +13,5 @@ "license": "MIT",

"bugs": "https://github.com/syntax-tree/nlcst-affix-emoticon-modifier/issues",
"author": "Titus Wormer <tituswormer@gmail.com> (http://wooorm.com)",
"author": "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)",
"contributors": [
"Titus Wormer <tituswormer@gmail.com> (http://wooorm.com)"
"Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)"
],

@@ -27,16 +27,16 @@ "files": [

"esmangle": "^1.0.0",
"nlcst-emoji-modifier": "^2.0.1",
"nlcst-emoji-modifier": "^2.0.0",
"nlcst-emoticon-modifier": "^1.0.0",
"nyc": "^11.0.0",
"prettier": "^1.12.1",
"remark-cli": "^5.0.0",
"remark-preset-wooorm": "^4.0.0",
"nyc": "^14.0.0",
"prettier": "^1.0.0",
"remark-cli": "^6.0.0",
"remark-preset-wooorm": "^5.0.0",
"retext-english": "^3.0.0",
"tape": "^4.6.2",
"unified": "^6.1.5",
"unist-util-remove-position": "^1.1.0",
"xo": "^0.20.0"
"tape": "^4.0.0",
"unified": "^7.0.0",
"unist-util-remove-position": "^1.0.0",
"xo": "^0.24.0"
},
"scripts": {
"format": "remark . -qfo && prettier --write '**/*.js' && xo --fix",
"format": "remark . -qfo && prettier --write \"**/*.js\" && xo --fix",
"build-bundle": "browserify index.js --bare -s nlcstAffixEmoticonModifier > nlcst-affix-emoticon-modifier.js",

@@ -66,7 +66,2 @@ "build-mangle": "esmangle < nlcst-affix-emoticon-modifier.js > nlcst-affix-emoticon-modifier.min.js",

"esnext": false,
"rules": {
"guard-for-in": "off",
"no-var": "off",
"prefer-arrow-callback": "off"
},
"ignore": [

@@ -73,0 +68,0 @@ "nlcst-affix-emoticon-modifier.js"

@@ -1,15 +0,22 @@

# nlcst-affix-emoticon-modifier [![Build Status][travis-badge]][travis] [![Coverage Status][codecov-badge]][codecov]
# nlcst-affix-emoticon-modifier
Move initial emoticons into the previous sentence. Useful because many people
place an emoticon, representing emotion related to the previous sentence, after
a terminal marker. :unamused:
[![Build][build-badge]][build]
[![Coverage][coverage-badge]][coverage]
[![Downloads][downloads-badge]][downloads]
[![Size][size-badge]][size]
[![Sponsors][sponsors-badge]][collective]
[![Backers][backers-badge]][collective]
[![Chat][chat-badge]][chat]
Implemented by [**retext-emoji**][retext-emoji], but separated for use by
standalone (non-retext) processing.
[**nlcst**][nlcst] utility to move initial emoticons into the previous sentence.
Useful because many people place an emoticon, representing emotion related to
the previous sentence, after a terminal marker. :unamused:
## Installation
> **Note**: You probably want to use [retext-emoji][].
## Install
[npm][]:
```bash
```sh
npm install nlcst-affix-emoticon-modifier

@@ -63,3 +70,3 @@ ```

Merge affix emoticons into the previous sentence.
Merge affix emoticons (`EmoticonNode`) into the previous sentence.

@@ -70,11 +77,13 @@ ##### Parameters

The node to process ([`NLCSTParagraphNode`][paragraph]).
The node to process ([`Paragraph`][paragraph]).
## Contribute
See [`contributing.md` in `syntax-tree/nlcst`][contributing] for ways to get
See [`contributing.md` in `syntax-tree/.github`][contributing] for ways to get
started.
See [`support.md`][support] for ways to get help.
This organisation has a [Code of Conduct][coc]. By interacting with this
repository, organisation, or community you agree to abide by its terms.
This project has a [Code of Conduct][coc].
By interacting with this repository, organisation, or community you agree to
abide by its terms.

@@ -87,22 +96,44 @@ ## License

[travis-badge]: https://img.shields.io/travis/syntax-tree/nlcst-affix-emoticon-modifier.svg
[build-badge]: https://img.shields.io/travis/syntax-tree/nlcst-affix-emoticon-modifier.svg
[travis]: https://travis-ci.org/syntax-tree/nlcst-affix-emoticon-modifier
[build]: https://travis-ci.org/syntax-tree/nlcst-affix-emoticon-modifier
[codecov-badge]: https://img.shields.io/codecov/c/github/syntax-tree/nlcst-affix-emoticon-modifier.svg
[coverage-badge]: https://img.shields.io/codecov/c/github/syntax-tree/nlcst-affix-emoticon-modifier.svg
[codecov]: https://codecov.io/github/syntax-tree/nlcst-affix-emoticon-modifier
[coverage]: https://codecov.io/github/syntax-tree/nlcst-affix-emoticon-modifier
[downloads-badge]: https://img.shields.io/npm/dm/nlcst-affix-emoticon-modifier.svg
[downloads]: https://www.npmjs.com/package/nlcst-affix-emoticon-modifier
[size-badge]: https://img.shields.io/bundlephobia/minzip/nlcst-affix-emoticon-modifier.svg
[size]: https://bundlephobia.com/result?p=nlcst-affix-emoticon-modifier
[sponsors-badge]: https://opencollective.com/unified/sponsors/badge.svg
[backers-badge]: https://opencollective.com/unified/backers/badge.svg
[collective]: https://opencollective.com/unified
[chat-badge]: https://img.shields.io/badge/join%20the%20community-on%20spectrum-7b16ff.svg
[chat]: https://spectrum.chat/unified/syntax-tree
[npm]: https://docs.npmjs.com/cli/install
[license]: LICENSE
[license]: license
[author]: http://wooorm.com
[author]: https://wooorm.com
[retext-emoji]: https://github.com/wooorm/retext-emoji
[contributing]: https://github.com/syntax-tree/.github/blob/master/contributing.md
[paragraph]: https://github.com/syntax-tree/nlcst#paragraph
[support]: https://github.com/syntax-tree/.github/blob/master/support.md
[contributing]: https://github.com/syntax-tree/nlcst/blob/master/contributing.md
[coc]: https://github.com/syntax-tree/.github/blob/master/code-of-conduct.md
[coc]: https://github.com/syntax-tree/nlcst/blob/master/code-of-conduct.md
[retext-emoji]: https://github.com/retextjs/retext-emoji
[nlcst]: https://github.com/syntax-tree/nlcst
[paragraph]: https://github.com/syntax-tree/nlcst#paragraph
SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc