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

luyou

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

luyou - npm Package Compare versions

Comparing version 1.0.1 to 2.0.0

23

package.json
{
"name": "luyou",
"version": "1.0.1",
"description": "ES modules of page.",
"version": "2.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/Roll-es/luyou.git"
"url": "git+https://github.com/npm/deprecate-holder.git"
},
"keywords": [
"page"
],
"author": "shyam-chen",
"license": "MIT",
"author": "",
"license": "ISC",
"bugs": {
"url": "https://github.com/Roll-es/luyou/issues"
"url": "https://github.com/npm/deprecate-holder/issues"
},
"homepage": "https://github.com/Roll-es/luyou#readme",
"dependencies": {
"path-to-regexp": "^1.7.0"
}
"homepage": "https://github.com/npm/deprecate-holder#readme"
}

@@ -1,28 +0,5 @@

# luyou
# Deprecated Package
ES modules of [page](https://github.com/visionmedia/page.js).
This package is no longer supported and has been deprecated. To avoid malicious use, npm is hanging on to the package name.
> Tiny [Express](https://github.com/expressjs/express)-inspired client-side router.
## Install
```bash
$ npm i luyou -S
```
## Example
```js
import luyou from 'luyou';
const qs = (query) => document.querySelector(query);
luyou('/', () => qs('body').innerHTML = 'Home');
luyou('/about', () => qs('body').innerHTML = 'About');
luyou('*', () => qs('body').innerHTML = '404');
luyou();
```
```html
<base href="/">
```
Please contact support@npmjs.com if you have questions about this package.
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