strikethrough-js
Advanced tools
Comparing version 3.0.0 to 3.0.2
{ | ||
"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. |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
8741
5
1