Sha256: 0d28434da1607f8e384231de0f5079a366364eb132681f1234e7893147a2d29c

Contents?: true

Size: 279 Bytes

Versions: 23

Compression:

Stored size: 279 Bytes

Contents

'use strict'

var visit = require('unist-util-visit')

module.exports = removePosition

function removePosition(node, force) {
  visit(node, force ? hard : soft)
  return node
}

function hard(node) {
  delete node.position
}

function soft(node) {
  node.position = undefined
}

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
trusty-cms-5.0.7 node_modules/unist-util-remove-position/index.js
trusty-cms-5.0.6 node_modules/unist-util-remove-position/index.js
trusty-cms-5.0.5 node_modules/unist-util-remove-position/index.js
trusty-cms-5.0.4 node_modules/unist-util-remove-position/index.js
trusty-cms-5.0.3 node_modules/unist-util-remove-position/index.js
trusty-cms-5.0.2 node_modules/unist-util-remove-position/index.js
trusty-cms-5.0.1 node_modules/unist-util-remove-position/index.js
trusty-cms-4.3.5 node_modules/unist-util-remove-position/index.js
trusty-cms-5.0.0 node_modules/unist-util-remove-position/index.js
trusty-cms-4.3.4 node_modules/unist-util-remove-position/index.js
trusty-cms-4.3.3 node_modules/unist-util-remove-position/index.js
trusty-cms-4.3.2 node_modules/unist-util-remove-position/index.js
trusty-cms-4.3.1 node_modules/unist-util-remove-position/index.js
trusty-cms-4.3 node_modules/unist-util-remove-position/index.js
trusty-cms-4.2.3 node_modules/unist-util-remove-position/index.js
trusty-cms-4.2.2 node_modules/unist-util-remove-position/index.js
trusty-cms-4.2.1 node_modules/unist-util-remove-position/index.js
trusty-cms-4.2 node_modules/unist-util-remove-position/index.js
trusty-cms-4.1.9 node_modules/unist-util-remove-position/index.js
trusty-cms-4.1.8 node_modules/unist-util-remove-position/index.js