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

code-excerpt

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

code-excerpt - npm Package Compare versions

Comparing version 3.0.0 to 4.0.0

dist/index.d.ts

33

package.json
{
"name": "code-excerpt",
"version": "3.0.0",
"version": "4.0.0",
"description": "Extract code excerpts",

@@ -12,20 +12,33 @@ "license": "MIT",

},
"type": "module",
"exports": "./dist/index.js",
"types": "./dist/index.d.ts",
"engines": {
"node": ">=10"
"node": "^12.20.0 || ^14.13.1 || >=16.0.0"
},
"scripts": {
"test": "tsd && xo && ava"
"build": "tsc",
"dev": "tsc --watch",
"prepare": "npm run build",
"pretest": "npm run build",
"test": "xo && ava"
},
"files": [
"index.js",
"index.d.ts"
"dist"
],
"dependencies": {
"convert-to-spaces": "^1.0.1"
"convert-to-spaces": "^2.0.1"
},
"devDependencies": {
"ava": "^3.9.0",
"tsd": "^0.11.0",
"xo": "^0.32.0"
}
"@sindresorhus/tsconfig": "^2.0.0",
"@vdemedes/prettier-config": "^2.0.1",
"ava": "^4.0.1",
"prettier": "^2.5.1",
"typescript": "^4.5.5",
"xo": "^0.47.0"
},
"xo": {
"prettier": true
},
"prettier": "@vdemedes/prettier-config"
}

@@ -14,3 +14,3 @@ # code-excerpt ![test](https://github.com/vadimdemedes/code-excerpt/workflows/test/badge.svg)

```js
const codeExcerpt = require('code-excerpt');
import codeExcerpt from 'code-excerpt';

@@ -17,0 +17,0 @@ const source = `

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