Socket
Socket
Sign inDemoInstall

unist-util-stringify-position

Package Overview
Dependencies
1
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.2 to 2.0.0

license

4

index.js

@@ -10,3 +10,3 @@ 'use strict'

if (!value || typeof value !== 'object') {
return null
return ''
}

@@ -30,3 +30,3 @@

/* ? */
return null
return ''
}

@@ -33,0 +33,0 @@

{
"name": "unist-util-stringify-position",
"version": "1.1.2",
"version": "2.0.0",
"description": "Stringify a Unist node, position, or point",

@@ -19,28 +19,35 @@ "license": "MIT",

"bugs": "https://github.com/syntax-tree/unist-util-stringify-position/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)"
],
"types": "types/index.d.ts",
"files": [
"types/index.d.ts",
"index.js"
],
"dependencies": {},
"dependencies": {
"@types/unist": "^2.0.2"
},
"devDependencies": {
"browserify": "^16.0.0",
"esmangle": "^1.0.0",
"nyc": "^11.0.0",
"dtslint": "^0.4.2",
"nyc": "^13.0.0",
"prettier": "^1.12.1",
"remark-cli": "^5.0.0",
"remark-cli": "^6.0.0",
"remark-preset-wooorm": "^4.0.0",
"tape": "^4.5.1",
"xo": "^0.20.0"
"tinyify": "^2.4.3",
"typescript": "^3.2.2",
"xo": "^0.23.0"
},
"scripts": {
"format": "remark . -qfo && prettier --write '**/*.js' && xo --fix",
"build-bundle": "browserify index.js --no-builtins -s unistUtilStringifyPosition > unist-util-stringify-position.js",
"build-mangle": "esmangle unist-util-stringify-position.js > unist-util-stringify-position.min.js",
"format": "remark . -qfo && prettier --write \"**/*.{js,ts}\" && xo --fix",
"build-bundle": "browserify . -s unistUtilStringifyPosition > unist-util-stringify-position.js",
"build-mangle": "browserify . -s unistUtilStringifyPosition -p tinyify > unist-util-stringify-position.min.js",
"build": "npm run build-bundle && npm run build-mangle",
"test-api": "node test",
"test-coverage": "nyc --reporter lcov tape test.js",
"test": "npm run format && npm run build && npm run test-coverage"
"test-types": "dtslint types",
"test": "npm run format && npm run build && npm run test-coverage && npm run test-types"
},

@@ -47,0 +54,0 @@ "nyc": {

# unist-util-stringify-position [![Build Status][build-badge]][build-page] [![Coverage Status][coverage-badge]][coverage-page]
Stringify a [**Unist**][unist] [`Position`][position] or [`Point`][point].
Stringify [unist\*\*][unist] [`Position`][position]s or [`Point`][point]s.

@@ -42,4 +42,3 @@ ## Installation

Stringify one point, a position (start and end points), or
a node’s position.
Stringify one point, a position (start and end points), or a node’s position.

@@ -57,6 +56,6 @@ ###### Parameters

`string?` — A range `ls:cs-le:ce` (when given `node` or
`position`) or a point `l:c` (when given `point`), where `l` stands
for line, `c` for column, `s` for `start`, and `e` for
end. `null` is returned if the given value is neither `node`,
`string?` — A range `ls:cs-le:ce` (when given `node` or `position`) or a point
`l:c` (when given `point`), where `l` stands for line, `c` for column, `s` for
`start`, and `e` for end.
An empty string (`''`) is returned if the given value is neither `node`,
`position`, nor `point`.

@@ -88,5 +87,5 @@

[license]: LICENSE
[license]: license
[author]: http://wooorm.com
[author]: https://wooorm.com

@@ -93,0 +92,0 @@ [unist]: https://github.com/syntax-tree/unist

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