https://github.com/runroom/purejs
Common javascript functions without jquery
https://github.com/runroom/purejs
Last synced: 10 months ago
JSON representation
Common javascript functions without jquery
- Host: GitHub
- URL: https://github.com/runroom/purejs
- Owner: Runroom
- License: mit
- Created: 2017-08-22T15:41:55.000Z (almost 9 years ago)
- Default Branch: 3.x
- Last Pushed: 2024-11-05T16:26:33.000Z (over 1 year ago)
- Last Synced: 2025-07-26T05:52:54.716Z (11 months ago)
- Language: TypeScript
- Size: 1.18 MB
- Stars: 16
- Watchers: 4
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# PureJS
[](https://www.npmjs.com/package/@runroom/purejs)

[](https://github.com/Runroom/purejs/actions/workflows/ci.yaml)
[](https://github.com/Runroom/purejs/actions/workflows/qa.yaml)
[](https://codecov.io/gh/Runroom/purejs)
PureJS is a pack of pure javascript, non-jquery, functions exported as [Node.js](https://nodejs.org/) modules.
## Quickstart
Install the package as your project dependency
```bash
npm install @runroom/purejs
```
Use it importing the whole library or the methods you need
```javascript
import events from "@runroom/purejs/lib/events";
events.onDocumentReady(() => {
// your code
});
```
## Supported modules
- [anchorTo](./doc/anchorTo.md)
- [animateTo](./doc/animateTo.md)
- [~~cookies~~ (Deprecated)](./doc/cookies.md)
- [debounce](./doc/debounce.md)
- [events](./doc/events.md)
- [forEach](./forEach.md)
- [safeScrollTop](./doc/safeScrollTop.md)
- [scrollDirection](./doc/scrollDirection.md)
- [touchable](./doc/touchable.md)