Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mdast-util-phrasing

Package Overview
Dependencies
Maintainers
2
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mdast-util-phrasing - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

license

10

index.js

@@ -1,6 +0,6 @@

'use strict';
'use strict'
var is = require('unist-util-is');
var is = require('unist-util-is')
module.exports = isPhrasing;
module.exports = isPhrasing

@@ -20,7 +20,7 @@ var phrasing = [

'text'
];
]
/* Check if a node is a phrasing element */
function isPhrasing(node) {
return is(phrasing, node);
return is(phrasing, node)
}
{
"name": "mdast-util-phrasing",
"version": "1.0.0",
"version": "1.0.1",
"description": "Check if a node is a phrasing element",

@@ -17,3 +17,3 @@ "license": "MIT",

"Victor Felder <victor@draft.li> (https://draft.li)",
"Titus Wormer <tituswormer@gmail.com> (http://wooorm.com)"
"Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)"
],

@@ -27,17 +27,14 @@ "files": [

"devDependencies": {
"remark-cli": "^4.0.0",
"remark-preset-wooorm": "^3.0.0",
"nyc": "^11.0.0",
"nyc": "^13.0.0",
"prettier": "^1.14.3",
"remark-cli": "^6.0.0",
"remark-preset-wooorm": "^4.0.0",
"tape": "^4.4.0",
"xo": "^0.18.1"
"xo": "^0.23.0"
},
"scripts": {
"build-md": "remark . --quiet --frail --output",
"build": "npm run build-md",
"lint": "xo",
"test-api": "node test.js",
"format": "remark . -qfo && prettier --write '**/*.js' && xo --fix",
"test-api": "node test",
"test-coverage": "nyc --reporter lcov tape test.js",
"pretest": "npm run lint",
"test": "node test.js",
"posttest": "npm run test-coverage"
"test": "npm run format && npm run test-coverage"
},

@@ -50,4 +47,12 @@ "nyc": {

},
"prettier": {
"tabWidth": 2,
"useTabs": false,
"singleQuote": true,
"bracketSpacing": false,
"semi": false,
"trailingComma": "none"
},
"xo": {
"space": true,
"prettier": true,
"esnext": false,

@@ -54,0 +59,0 @@ "rules": {

@@ -16,3 +16,3 @@ # mdast-util-phrasing [![Build Status][build-badge]][build-page] [![Coverage Status][coverage-badge]][coverage-page]

```javascript
var phrasing = require('mdast-util-phrasing');
var phrasing = require('mdast-util-phrasing')

@@ -22,3 +22,3 @@ phrasing({

children: [{type: 'text', value: 'Alpha'}]
}); //=> false
}) // => false

@@ -28,3 +28,3 @@ phrasing({

children: [{type: 'text', value: 'Delta'}]
}); //=> true
}) // => true
```

@@ -70,3 +70,3 @@

[license]: LICENSE
[license]: license

@@ -73,0 +73,0 @@ [node]: https://github.com/syntax-tree/mdast#ast

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