npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@emplodies/spaceship

v1.0.2

Published

<p align="center"> <h3 align="center">spaceship</h3>

Downloads

44

Readme

Table of Contents

🌝 About

spaceship is a utility library for JavaScript developers who make web services.

We want to contribute to productivity improvement by providing frequently used functions in the utility.

There are 10 useful utility functions in spaceship 1.0.

🕊 Features

✨Fetch

asyncState

Easily manage status that pending, success, failure at asynchronous request

detectBrowser

get browser info to use this info to handle many ituations

✨Browser

scriptLoader

When we want to dynamically import scripts.

isMobile

Detect the userAgent is Mobile

✨Data

getPadNumber

get formatted number string what you want.

normalizeKeyword

It can be used in user search keyword case and also it can be used to prevent typos to see accurate results

objToParam

Sometimes we make url with parameters from object data.

paramsToObj

when we develop web service, we frequently get data params and change to object

toTimeString

get TimeStamp from system time stamp

✨Etc

uniqueKey

generate Unique Key ( If you want some salt :)

🏁 Getting started

Installation

Using npm:

$ npm i @emplodies/spaceship

If you want to download by selecting the util

$ npm i @emplodies/spaceship.detect-browser

In a browser:

$ Sorry! Wait For a while. we'll prepare soon.

Hello World

import detectBrowser from "@emplodies/spaceship.detect-browser";
    
// If you use safari,
detectBrowser();
// => 'Safari'
    
// If you use Opera(or OPR)
detectBrowser();
// => 'Opera'

📖 Documentation

Our library Spaceship document site 

🎁 Contributing

Any kind of contribution is welcome. There are many ways to contribute to this project.

Question

Questions about the utilities provided by spaceship can be helpful to developers who are experiencing the same difficulty. If you have any questions about using the utility, please leave it as an issue.

We encourage all developers to share their content. :)

Information

If there is a bug in the existing utility or there is an error in the managed document, please report it as an issue.

It is very helpful in making better open source.

Add Utils

You can add a utility to spaceship.

When suggesting new features, please follow the procedure below.

  1. New issue

Make new issue with enhancement template. And assign three maintainer.

readme-1

  1. Check Contributing Guide.

  2. Fork the project.

  3. Create a pr feature branch

$ git checkout -b pr/you-new-utils
  1. Run the tests

  2. Open a pull request.

💉 Running tests

To test utils

$ npm run install
$ npm run test

When you add your own util to this repo, check these rules

  1. You must add your util's test
  2. Plz maintain all tests are passed 🙏

License

Spaceship is MIT licensed