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

strikethrough-js

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

strikethrough-js - npm Package Compare versions

Comparing version 3.0.0 to 3.0.2

dist/index.js

11

package.json
{
"name": "strikethrough-js",
"version": "3.0.0",
"version": "3.0.2",
"description": "Manipulate strikethrough characters in Javascript",
"main": "lib/index.js",
"main": "dist/index.js",
"files": ["dist"],
"scripts": {
"build": "babel src --out-dir lib --ignore src/test",
"prepare": "husky install && rm -rf lib && npm run build",
"build": "babel src --out-dir dist --ignore src/test",
"prepare": "husky install && rm -rf dist && npm run build",
"test": "jest"

@@ -35,4 +36,4 @@ },

"engines": {
"node": ">14"
"node": ">=14.0.0"
}
}

@@ -28,8 +28,8 @@ <div align="center">

// Common
var lib = require('strikethrough-js');
var res = lib.removeStrikethrough('m̶y̶T̶e̶x̶t̶');
var strikethrough = require('strikethrough-js');
var res = strikethrough.removeStrikethrough('m̶y̶T̶e̶x̶t̶');
// ES5/6
import * as lib from 'strikethrough-js';
const res = lib.removeStrikethrough('m̶y̶T̶e̶x̶t̶');
import { removeStrikethrough } from 'strikethrough-js';
const res = removeStrikethrough('m̶y̶T̶e̶x̶t̶');
```

@@ -88,8 +88,8 @@

### Library
Since this `lib` is pretty light, there is no need for a sophisticated bundler (like Webpack or Rollup). The core `lib` is bundled with bare bones [NodeJS](https://nodejs.org/en/) and [Babel](https://babeljs.io/).
Since this `lib` is pretty light, there is no need for a sophisticated bundler (like Webpack or Rollup). The core `lib` is bundled with bare-bones [NodeJS](https://nodejs.org/en/) and [Babel](https://babeljs.io/).
### Tests
```npm
npm t
npm test
```
Will run [Jest](https://jestjs.io/) test suites. It will be also triggered by [Husky](https://github.com/typicode/husky) git hooks.
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